S40 手机的提醒应用程序

发布于 2024-08-11 17:45:35 字数 308 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

若水微香 2024-08-18 17:45:35

根据 Bogdan Piloca 给出的链接,所有 S40 版本(从第 2 版到第 6 版)都存在一个已知问题:

即使 MIDlet 已签名,并且自动启动设置设置为始终允许,也会向用户显示提示。

我想在 S40 上 PushRegistry 不会帮助你

According to the link given by Bogdan Piloca, there a known issue with all S40 version, from 2nd to 6th edition:

Even if the MIDlet is signed, and the Auto-start settings are set to Always allowed, the prompt is presented to the user.

I guess that on S40 the PushRegistry wouldn't help you

放肆 2024-08-18 17:45:35

请参阅诺基亚论坛的链接。该页面还提到,对于这种情况没有可用的解决方法。对我们来说太糟糕了,因为我们也计划拥有这种功能。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文