Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 1
Registered: ‎08-09-2008
My Device: Not Specified

web display

hello guys,

 

I am newbie to blackberry development. I want to ask few things:

 

1. I am using JDE 4.5.0 using 8300 emulator for my application. I want to access google web page and for that I am   using Browser class but the API says no code signing is required for simulators and I have changed the preferences but when I run the application it does not show me the web page ?. Can you tell why ?.

 

code as follows.

      if (name.equals("Weather"))
      { 
         BrowserSession bss = Browser.getDefaultSession();
         bss.displayPage("http://wwww.google.com");
         bss.showBrowser();
      }

 

thanks

Highlighted
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: web display

Hi,

 I tried running your code, there is no problem in opening a browser and viewing the page.

 It just a typing mistake in your code "bss.displayPage("http://wwww.google.com");" chnage it to "bss.displayPage("http://www.google.com");", it should work.

 

Thank you.


Use Search. "Accept Solution" If the problem is resolved.