Does an AlarmManager alarm persist if app is killed by system due to low memory?
<p>I already know that if your app is forced closed by an app killer, or through the Android settings, your pending alarms are lost.  But what if Android itself killed it due to very low memory. Would your alarms be lost in this case?  How often does this actually happen?</p>

<p>I see two ways to recover from losing an alarm:</p>

<ol>
<li><p>If your app has a main activity, use onCreate() to check if your alarm is running behind schedule (alarm should store the time it last ran in a pref), and reschedule it as necessary.</p></li>
<li><p>Find some common recurring Android task to latch onto with a receiver to do the same check as above.</p></li>
</ol>

<p>Both of these have some obvious major cons. Any other ideas?</p>
