title: Android AlarmManager - RTC_WAKEUP vs ELAPSED_REALTIME_WAKEUP
body: <p>Can someone explain to me the difference between <code>AlarmManager.RTC_WAKEUP</code> and <code>AlarmManager.ELAPSED_REALTIME_WAKEUP</code>? I have read the documentation but still don't really understand the implication of using one over the other.</p>
  
  <p>Example code:</p>
  
  <pre><code>    alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 
                       scheduledAlarmTime, 
                       pendingIntent);
  
      alarmManager.set(AlarmManager.RTC_WAKEUP, 
                       scheduledAlarmTime, 
                       pendingIntent);
  </code></pre>
  
  <p>How different will the two lines of code execute? When will those two lines of code execute relative to each other?</p>
  
  <p>I appreciate your help.</p>