开发者

Blackberry - How to print HTML String in a field

开发者 https://www.devze.com 2022-12-30 15:13 出处:网络
I have an HTML String like <p>something</p> etc... some other html string etc... <p>something</p&开发者_运维问答gt;

I have an HTML String like

<p>something</p> etc... some other html string etc... <p>something</p&开发者_运维问答gt;

I would like to print in a field this string formatted. in android I use a webview... in iphone a UIWebView... but in BlackBerry?

Thanks ;)

Sergio


If you need to support only RIM OS 5.0.0 and greater you can use BrowserField.displayContent method.

Othervice try BrowserFieldDemo & HttpConnection mockup approach


Please see the link for sample code / examples

http://docs.blackberry.com/en/developers/deliverables/11958/Creating_a_field_to_display_web_content_851601_11.jsp


look to BrowserField

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/browser/field2/BrowserField.html

0

精彩评论

暂无评论...
验证码 换一张
取 消