开发者

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

开发者 https://www.devze.com 2023-02-19 14:23 出处:网络
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.

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

精彩评论

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