Keep android alarms alive, even after process killed by a task manager
I am writin开发者_C百科g 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.
In short, no. You can re-register your alarms when the user starts your app again, or when the phone is rebooted.
精彩评论