开发者

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

Als开发者_C百科o, as I'm launching the stand alone browser, it should work with BIS too, right?

Thanks in advance to everyone!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜