Alarm doesn't ring if program force-stopped
<p>I have an alarm app which I think was programmed in the standard way using an <code>AlarmManager</code> and <code>BroadcastReceiver</code>. 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.</p>

<p>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.</p>

<p>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.</p>

<p>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 <em>manually</em> do a force stop then all should be well.</p>

<p>Any ideas?</p>

<p><strong>EDIT:</strong> I just tested "Alarm Clock Xtreme". I set an alarm. Then did a force stop... the alarm never rang. </p>
