Enhanced support for web content in BlackBerry device applications

In BlackBerry® Java® Development Environment 5.0, the net.rim.device.api.browser.field2 package provides a new set of APIs you can use to embed web content in BlackBerry device applications.

In earlier versions of the BlackBerry JDE, the net.rim.device.api.browser.field package provided functionality to add web content to a BlackBerry device application. For more information about using this browser field, see the BrowserFieldDemo sample application that is provided with the BlackBerry JDE.

The APIs that are new in BlackBerry JDE 5.0 allow you to perform the following actions:

  • load and configure the display settings for web content in Field objects in any application
  • access the DOM for loaded web content
  • control the HTTP handling for connections, SSL, cookies, and caching
  • set callback listeners to monitor the loading progress of web pages

You can create applications that include Java objects and methods that can access and invoke JavaScript® code and be accessed and invoked by JavaScript code by using the APIs in the net.rim.device.api.script package, which is new in BlackBerry JDE 5.0.

Previous topic: Request a web page

Was this information helpful? Send us your comments.