S40 手机的提醒应用程序
S40 不允许应用程序在后台运行。看来唯一的解决方案是使用 PushRegistry.registerAlarm。
我正在尝试制作一个提醒应用程序,因此当触发它时,它应该使手机振动并发出噪音,但不幸的是我收到一条小消息,显示“提醒:应用程序名称”,并且软键设置为“打开”。当它打开时,它会发出噪音和振动(或者它会,现在我只是用一个简单的文本框进行测试)。
有没有办法让 PushRegistry.registerAlarm 实际上打开我的应用程序,而不是等待另一个确认?
或者您知道另一种让应用程序在 S40 上后台运行的方法吗?
谢谢!
S40 doesn't allow an app to run in background. It seams the only solution is to use PushRegistry.registerAlarm.
I'm trying to make a reminder app, so when triggered it should make the phone vibrate and make noise, but unfortunately i get a small message saying "Reminder: App name" and the softkey is set to "Open". When it opens it makes the noise and vibrations (or it will, now i am just testing with a simple TextBox).
Is there a way to make the PushRegistry.registerAlarm actually open my app, not wait for yet another confirmation?
Or do you know another way to make a app run in background on S40?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 Bogdan Piloca 给出的链接,所有 S40 版本(从第 2 版到第 6 版)都存在一个已知问题:
我想在 S40 上 PushRegistry 不会帮助你
According to the link given by Bogdan Piloca, there a known issue with all S40 version, from 2nd to 6th edition:
I guess that on S40 the PushRegistry wouldn't help you
请参阅诺基亚论坛的链接。该页面还提到,对于这种情况没有可用的解决方法。对我们来说太糟糕了,因为我们也计划拥有这种功能。
Please see this link from Forum Nokia. The page also mentioned that there is no available workaround for this situation. Too bad for us since we are also planning to have this kind of functionality.