Keep android alarms alive, even after process killed by a task manager

安稳与你 提交于 2020-01-13 03:24:22

问题


I am writing an alarm program. My problem is task managers, like advanced task manager or Samsung task manager, remove my alarms when clearing memory. Is there any way of preventing task managers from removing my alarms? Or a way to be notified of "clear memory" and forcing app to recreate alarms again.


回答1:


In short, no. You can re-register your alarms when the user starts your app again, or when the phone is rebooted.



来源:https://stackoverflow.com/questions/7551287/keep-android-alarms-alive-even-after-process-killed-by-a-task-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!