问题
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