title: Alarmmanager or Alarmclock
body: <p>I want to program an app that has two independent, repetitive alarms. There are two classes seem to be able do this: <code>AlarmManager</code> and <code>AlarmClock</code>. I've tested <code>AlarmManager</code>, but when Android restarts all alarms are cleared.</p>
  
  <p>Which should I use?</p>