Condition for disabled alarm.
Posted: 30 Aug 2014 08:55
Hey folks,
I have a flow which gets executed after I confirmed the alarm to snooze for 10 minutes or to get completely switched off.
This is realized by a broadcast of com.android.deskclock.ALARM_DONE.
What I originally wanted to do is to react only when I confirm the alarm, not when I snooze it.
Unfortunately I tried to achieve this by using the alternative broadcasts com.android.deskclock.ALARM_DISMISS as well as com.android.deskclock.ALARM_SNOOZE which both didn't work.
Any ideas in how to do this?
My phone is a Google Nexus 5.
Thanks in advance!
Stefan
I have a flow which gets executed after I confirmed the alarm to snooze for 10 minutes or to get completely switched off.
This is realized by a broadcast of com.android.deskclock.ALARM_DONE.
What I originally wanted to do is to react only when I confirm the alarm, not when I snooze it.
Unfortunately I tried to achieve this by using the alternative broadcasts com.android.deskclock.ALARM_DISMISS as well as com.android.deskclock.ALARM_SNOOZE which both didn't work.
Any ideas in how to do this?
My phone is a Google Nexus 5.
Thanks in advance!
Stefan