开发者

Launch an URL in Blackberry App

How do I open, or launch, a URL f开发者_JS百科rom a BlackBerry application? I am not interested in doing this through a browser, such as Opera. I think there is a Java class called BrowserContentManager or similar, but I can't figure out how to use it.


Check the demo code BrowserContentManagerDemo.java from the Blackberry JDE installation sample folder:
BlackBerry JDE 4.5.0\samples\com\rim\samples\device\blackberry\browser\

or from the Eclipse plugins folder:

eclipse/plugins/net.rim.ejde.componentpack6.0.0_6.0.0.29/components/samples/com/rim/samples/device/browser/browsercontentmanagerdemo/


I see you have already had an answer for BrowserContentmanager but I thought it worth mentioning that there is a similar api in JDE 5 and later called BrowserField.

Check this url for example code: http://supportforums.blackberry.com/t5/Java-Development/BrowserField-Sample-Code-Using-the-BrowserFieldConfig-class/ta-p/495716

Cheers

Ray

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜