I found this code, which I guess is for the java file, but does that actually display it, or how do I do the XML? And does Blackberry have a nice GUI for the BB UI yet?
import net.rim.device.api.browser.field2.*;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.container.*;
public class BrowserFieldDemo extends UiApplication
{
public static void main(String[] args)
{
BrowserFieldDemo app = new BrowserFieldDemo();
app.enterEventDispatcher();
}
public BrowserFieldDemo()
{
pushScreen(new BrowserFieldDemoScreen());
}
}
class BrowserFieldDemoScreen extends MainScreen
{
public BrowserFieldDemoScreen()
{
BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER);
BrowserField browserField = new BrowserField(myBrowserFieldConfig);
add(browserField);
browserField.requestContent("http://www.blackberry.com");
}
}
I got the code from this page
My end-game is to have a web-based app using HTML5 since BB is a b*tch to program. I figure the HTML is super easy, and this way I just have to figure out how to show a webpage. Is there any reason I should not attempt this method?
HTML5 webapp is the best solution since not all BBs use the same code