This article applies to BlackBerry® Device Software 4.2 and later.
With BlackBerry Device Software 4.2, you provide raw HTML to invoke the BlackBerry Browser instead of providing a URL to fetch content. This allows you to use the BlackBerry Browser for locally stored content using standards-based HTML for display.
Note: The Browser Field classes can be used to display local HTML content, but this method would require a non-trivial amount of implementation work.
The mechanism for using the BlackBerry Browser to invoke the browser with raw HTML content is shown in the sample code below. The key aspect of the code is the section where you pass in the following string to the browser at the start of the data sequence:
The browser uses the sequence to base64 decode the string following the comma and displays it in the browser. When displaying the page, images and other items do not appear because the browser cannot fetch them.