title: Android: open activity when alarm clock is done or dismmised
body: <p>Every alarm clock that the user set through the phone stock clock has an option of opening another application when the alarm is dismissed or done (I'm not sure if this feature is added in Marshmallow but I have it and I run android M).</p>
  
  <p>The default for each alarm is "none" but you're able to pick the mail, weather, music applications etc...
  I would like to add my application to this list so it'll open directly when the alarm is done.</p>
  
  <p>What settings are needed for my application to show up at this list, and how can I set it as the default app for specific alarm (What extra should be specefied)</p>
  
  <pre><code>Intent i = new Intent(AlarmClock.ACTION_SET_ALARM);
  i.putExtra(AlarmClock.EXTRA_MESSAGE, "New Alarm");
  i.putExtra(AlarmClock.EXTRA_HOUR, 10);
  i.putExtra(AlarmClock.EXTRA_MINUTES, 30);
  startActivity(i);
  </code></pre>