user1520309
user1520309

Reputation:

BrowserField not showing the website.

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

}

Upvotes: 0

Views: 226

Answers (1)

Pachuco Digital
Pachuco Digital

Reputation: 69

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

Upvotes: 1

Related Questions