0
votes

This is the code i m running in my blackberry bold 9900 simulator but the BrowserField just shows the blank white screen and nothing. Is there any problem with my simulator or some setting needs to be done in it. Thanks in advance for help.

public class StartUp extends UiApplication {

 public static void main(String[])
 {
       StartUp start=new StartUp();
       start.enterEventDispatcher();
 }
 public StartUp() 
 {  
    MainScreen screen = new MainScreen();
    BrowserField browserField = new BrowserField();;
    screen.add(browserField);
    pushScreen(screen);

    browserField.requestContent("http://www.google.com/news");
 }

}

1
Check your simulator has connectivity. Open the browser manually and type-in a URL. - Mister Smith
Sorry was not well a few days..yes my simulator is opening url in its browser.. - user1520309
Try calling requestContent in a separate thread. - Mister Smith

1 Answers

1
votes

Verify if you have a network connection in your simulator, see this development guide article.