使用诺基亚 WRT 插件设置 Aptana
我刚刚安装了 Aptana,并按照向导完成了创建默认 RSS 阅读器的过程。 我更改了名称和网址,但没有更改其他任何内容。
它在 Aptana 的预览中运行良好。
两个问题:
i)。 当我尝试设置要部署到的设备时,按“窗口”->“首选项”->“Web 运行时”->“部署”中的“搜索”按钮会快速退出,而没有找到我的设备。
因此,我使用有线连接将小部件拖到我的 N82(软件版本 20.0.062)上,安装正常。 然而:
ii)。 当小部件尝试连接时,它会短暂显示“正在更新源”,但很快就会退出回到应用程序菜单。
对于这两个问题有什么想法吗? 特别是#2,如果将来发生问题,我该如何最好地调试该问题?
I've just installed Aptana and gone through the process of creating the default RSS Reader following the wizard. I changed the name and the url but nothing else.
It works fine in the preview in Aptana.
Two problems:
i). When I try to setup the device to deploy to, pressing the Search button in Window->preferences->Web Runtime->Deployment exits quickly without finding my device.
So, I dragged the widget onto my N82 (SW version 20.0.062) using a wired connection, it installed ok. However:
ii). When the widget attempts to connect it displays 'Updating feed' briefly but then exits back to the applications menu really quickly.
Any ideas for either of the issues? Particularly #2 and how best can I debug the issue if it happens in future?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于#2,您最好的选择是在代码路径中添加警报函数调用作为断点,因为 S60 设备中的设备上调试几乎不存在。
一个可能的问题是,某些版本的诺基亚浏览器中存在异步 xmlhttp 请求问题。 将请求更改为同步将是我尝试的第一件事。 显然这很糟糕,因为 UI 在 xmlhttp 请求期间冻结,但这些都是我们收到的牌。
另外,您确实记得在小部件的 info.plist 文件中明确允许网络连接,对吧? 这是可以解决问题的键/值对:
With #2 your best bet is to just add alert-function calls in the code path as breakpoints as on-device debugging in S60 devices is pretty non-existant.
One possible problem is that there's been problems with asynchronous xmlhttp-requests in some versions of the Nokia browser. Changing the request to synchronous would be the first thing I'd try. Obviously that sucks, because the UI freezes for the duration of the xmlhttp request, but those are the cards we've been dealt.
Also, you did remember to explicitly allow network connections in the info.plist -file of the widget, right? Here's the key/value-pair that'll do the trick: