Documentation for AlarmManager
startes that
Note: The Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running. For normal timing operations (ticks, timeouts, etc) it is easier and much more efficient to use Handler.
However, once my application is closed (force close from task manager) my alarm does not work and the OnReceive
method is never called inside the broadcast receiver.
I am targeting 4.x.
What's happening?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…