Search code examples
blackberryeclipse-pluginblackberry-simulator

how to load static page on blackberry Application


I currently have an application that uses a browserfield to access an internet page but I was wondering if it is possible to somehow embed the HTML page with the project so that the browserfield displays that page instead of having to retrieve it from the web?


Solution

  • yes you can do this with the 'displayContent' method:

    BrowserFieldConfig config = new BrowserFieldConfig();
    config.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_CARET);
    BrowserField test = new BrowserField(config);
    test.displayContent("Your HTML","");