黑莓浏览器无法在手持设备上运行,但可以在模拟器中运行
我正在尝试从我的应用程序中启动黑莓浏览器,它适用于模拟器,但不适用于设备。
这是代码:
public static void launchBrowser(String url) {
BrowserSession session = Browser.getDefaultSession();
session.displayPage(url);
}
它启动了浏览器,但没有加载页面。这是我得到的错误:
The protocol specified is not supported by the handheld. Please try a different url.
有办法做到这一点吗?我几乎绝望了:-S
另外,当我启动独立浏览器时,它也应该与 BIS 一起使用,对吗?
预先感谢大家!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已解决!忘记在 url 前添加 http://
Problem fixed! Had forgotten to add the http:// before the url