java-me – S40手机的提醒应用程序

S40不允许应用在后台运行.它接缝唯一的解决方案是使用PushRegistry.registerAlarm.

我正在尝试制作一个提醒应用程序,所以当触发它时应该让手机振动并发出噪音,但不幸的是我收到一条消息说“提醒:应用程序名称”,软键设置为“打开”.当它打开时会产生噪音和振动(或者它会,现在我只是用一个简单的TextBox进行测试).

有没有办法让PushRegistry.registerAlarm实际打开我的应用程序,而不是等待另一个确认?

或者你知道另一种让应用程序在S40后台运行的方法吗?

谢谢!

最佳答案 根据Bogdan Piloca给出的链接,所有S40版本都存在已知问题,从第2版到第6版:

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

我想在S40上,PushRegistry不会帮助你

点赞