title: Start AlarmManager if device is rebooted
body: <p>In my app I want to run some code every day at a specific time using an <code>AlarmManager</code>. In the <a href="http://developer.android.com/reference/android/app/AlarmManager.html" rel="noreferrer">android documentation</a> I found this:</p>
  
  <blockquote>
    <p>Registered alarms are retained while the device is asleep [...] but will be cleared if it is turned off and rebooted.</p>
  </blockquote>
  
  <p>And that is the problem. I want to run the code even if the user reboots the phone. If the user reboots the phone he currently has to relaunch my app to start alarms again. How can I prevent this? Is there a better mechanism I should use instead?</p>