I have an alarm app which I think was programmed in the standard way using an AlarmManager
and BroadcastReceiver
. I have even added code so that the alarm stays active after a reboot. I have been using the program without problem for weeks now.
I had been led to believe that doing things this way meant that it was not essential to keep my alarm program running the whole time, but to my horror I have just found that if I set an alarm and then do a force stop of my alarm app, then the alarm never rings.
I'm not sure that this means I made a mistake in my coding, or I was misled into believing that it is possible to keep the alarm set despite the app being stopped.
Maybe the OS somehow detects that my alarm app has an alarm running and therefore avoids shutting it down? So as long as the user doesn't manually do a force stop then all should be well.
Any ideas?
EDIT: I just tested "Alarm Clock Xtreme". I set an alarm. Then did a force stop... the alarm never rang.