Intents with extra info on the corresponding alarm

From Peter Mueller on 2014/12/28 15:46:46 +0000

i use different alarms depending on wether i have to go to work or not (different captchas, different smart wakeup times, different snooze times). I also use the intents to do stuff like checking for train delays when the alarm rings. This is neat but i would like to be able to differentiate which alarm went off in tasker. i would also love to be able to get the snooze duration when the snooze intent is sent (com.urbandroid.sleep.alarmclock.ALARM_SNOOZE_CLICKED_ACTION). If I remember my own android dev skills correctly then this is achieved by simply adding some extras to the intent:

http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String, double[])

Copied from original feature request: http://urbandroid.uservoice.com/forums/264867-sleep-as-android/suggestions/6894145-intents-with-extra-info-on-the-corresponding-alarm