title: Difference between AlarmManager and ScheduledExecutorService
body: <p>Besides setting and exact time (i.e. midnight) versus setting a delay (i.e. 24 hours), what's the difference between using <code>AlarmManager</code> and <code>ScheduledExecutorService</code> to run a task periodically?</p>
  
  <p>In my case, I need to run a little bit of code to check for new data every night and create a new notification if there is new data.</p>
  
  <p>Thanks!</p>