0

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");
 }

}

3
  • Check your simulator has connectivity. Open the browser manually and type-in a URL. Nov 6, 2012 at 17:17
  • Sorry was not well a few days..yes my simulator is opening url in its browser..
    – user1520309
    Nov 8, 2012 at 14:54
  • Try calling requestContent in a separate thread. Nov 8, 2012 at 15:34

1 Answer 1

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.