Trying to make my alarm manager alarm clock, survive force closing the app

Viewed 40

How do I make my alarm manager alarms that are set, not get erased after clearing all my running apps from memory.

1 Answers

It is unclear exactly what you mean by "clearing all my running apps from memory". If you mean some sort of "clear all" option from the overview screen, last I checked, that does not affect AlarmManager. However, there certainly are things that can affect AlarmManager alarms, such as "Force Stop" in Settings and some device-specific "task manager" apps.

For those, your only viable option is to save your alarm information somewhere (file, SharedPrefererences, SQLite, Web service, etc.), and re-establish your AlarmManager alarms the next time your apps runs.

Related