Search code examples
blackberryblackberry-simulatorblackberry-eclipse-pluginblackberry-jde

Blackberry Browser isn't working on handhelds but it does in the simulator



I'm trying to launch the Blackberry browser from within my app and it works for the simulator, but it doesn't for the device.
This is the code:


public static void launchBrowser(String url) {  
     BrowserSession session = Browser.getDefaultSession();  
     session.displayPage(url);  
}

It launched the browser, but it doesn't load the page. This is the error I get:

The protocol specified is not supported by the handheld.  
Please try a different url.

Is there a way to do this? I'm pretty much desperate :-S
Also, as I'm launching the stand alone browser, it should work with BIS too, right?
Thanks in advance to everyone!


Solution

  • Problem fixed! Had forgotten to add the http:// before the url