Keep android alarms alive, even after process kill

2020-07-18 10:39发布

问题:

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.