title: What happens to undelivered AlarmManager repeating alarms when phone wakes up?
body: <p>If we schedule an inexact repeating alarm with <code>AlarmManager.setInexactRepeating</code> to be fired every hour, for example, what happens if the phone is in standby for 4 hours and then it is woken up? Does the system deliver 4 alarms in a row for the same <code>PendingIntent</code> or does it deliver only a single alarm?</p>
  
  <p><strong>EDIT:</strong> reading the documentation with more attention, the <code>set(int, long, android.app.PendingIntent)</code> method documentation says: <em>Alarm intents are delivered with a data extra of type int called <code>Intent.EXTRA_ALARM_COUNT</code> that indicates how many past alarm events have been accumulated into this intent broadcast. Recurring alarms that have gone undelivered because the phone was asleep may have a count greater than one when delivered.</em> 
  So, when the phone comes out of standby, only one alarm will be delivered, with an intent extra that contains the number of missed alarms.</p>