我正在使用 Eclipse 和 Blackberry JRE 7.0 创建一个简单的应用程序,如下所示:
http://docs.blackberry.com/en/developers/deliverables/11958 /Configure_a_browser_field_825671_11.jsp
我正在尝试加载托管在应用程序浏览器字段内的远程服务器上的简单 HTML 页面。
在 9930 模拟器上运行应用程序时,我总是收到错误“模拟器上 120000 之后本地连接超时”。相同的远程页面在同一模拟器的 Web 浏览器上显示良好。
我确保启动 MDS 模拟器。
相同的链接在模拟器浏览器中显示良好。仅当使用 browserfield 时,我才会遇到问题。
单击图标启动应用程序时,我收到以下错误:
Error displaying content for: http://yahoo.com
Error message: java.lang.runtimeException:ApplicationRegistry:waitFor
(0xd0fe7d7338fourd7f0d) timeout
....
进一步等待时,我收到“本地连接超时错误”。
我知道在 Android 中,在清单文件中使用 webview 时必须启用互联网连接 - 有没有黑莓手机上有类似的设置吗?
I am creating a simple app using Eclipse and Blackberry JRE 7.0 as per the example given at:
http://docs.blackberry.com/en/developers/deliverables/11958/Configure_a_browser_field_825671_11.jsp
I am trying to load a simple HTML page hosted on a remote server inside browser field in the app.
When running the app on 9930 Simulator I always get the error 'Local connection timeout after 120000 on simulator'. The same remote page shows up fine on the web browser of the same simulator..
I am making sure to start the MDS simulator.
The same link shows up fine in simulator browser. Its only when using browserfield, I am having the problem.
I get the folling error when clicking the icon to launch the app:
Error displaying content for: http://yahoo.com
Error message: java.lang.runtimeException:ApplicationRegistry:waitFor
(0xd0fe7d7338fourd7f0d) timeout
....
On waiting further I get the 'Local connection timeout error..
I know that in Android one has to enable internet connection when using the webview in the manifest file - is there any similar setting one has to do in blackberry?
发布评论
评论(1)
我尝试在 9930 (JRE 7.0.0) 上运行 BrowserField 演示应用程序,但遇到了与您相同的问题。另一方面,该演示在 9800 (JRE 6.0.0) 上运行良好。我在 9930 上再次尝试,注意到虽然我确实启用了 MDS(在 Eclipse 中的运行/调试配置中启用了“使用模拟器启动移动数据系统连接服务 (MDS-CS)”),但 MDS 窗口并未出现,这似乎很奇怪。
我用谷歌搜索了一下,发现此帖子。根据这篇文章:
干得好,RIM!
然后,我从 JRE 7.0.0 中删除了 MDS 文件夹,并按照上述帖子中所述从 JRE 6.0.0 中复制了该文件夹。关闭并重新运行模拟器,瞧,MDS 窗口出现了。重新运行应用程序,一切都非常顺利!
I tried to run the BrowserField demo app on 9930 (JRE 7.0.0) and encounter the same issues as you did. On the other hand, the demo worked fine on 9800 (JRE 6.0.0). I tried again on 9930 and noticed that though I definitely enabled MDS (enabled the 'Launch Mobile Data System Connection Service (MDS-CS) with simulator' in the Run/Debug Configurations in Eclipse), the MDS window didn't appear which seemed very strange.
I googled a little and found this post on BlackBerry's forums. According to this post:
Well done, RIM!
Then, I deleted the MDS folder from JRE 7.0.0 and copied the one from JRE 6.0.0 as described in the aforementioned post. Closed and rerun simulator and voilà, the MDS window appeared. Rerun application, and everything worked like a charm!