views:

2372

answers:

3

Is there any api for viewing html content from w/in your blackberry application? To be clear, I don't mean launching the browser on top of my app to view a page. But rather rendering the page w/in my app.

+3  A: 

Yes. Check out the net.rim.device.api.browser.field package or the Blackberry Browser section of application integration.

Everything sort of finishes here:

Field field = browserContent.getDisplayableContent();

See:
JDE 4.7.0 API for the package
RIM app integration guide

Signed only api, as usual.

Richard Campbell
Looks like the first link above is broken - try this link: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/browser/field/package-summary.html
Dan J
There is some related BlackBerry sample code here:http://docs.blackberry.com/en/developers/deliverables/11935/Display_content_in_BB_Browser_field_565587_11.jsp
Dan J
A: 

Hi

Is this limited to 4.7 version or can even work for older versions . My specific target is 4.5 OS. If not how can I do this?

Thanks
Sudhakar Chavali

Sudhakar Chavali
A quick search in Google seems to show that package is available in v4.5.0 as well:http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/browser/field/package-summary.html
Dan J
+1  A: 

See this question for more detail on how to get this to work.

Dan J