Don I am doing it this way. The java you're using returns 0 of there isn't an alarm set or something in the future. Both of which you can use for some if/than/else.
But be aware that NEXT_ALARM_CLOCK_CHANGED seems to fire often randomly without any (obvious?) change of the alarm by the user. You have to account for this too. To be sure the alarm changed, you can just compare the new returned value with the last one if they are equal or not.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Yd6jLMnP854/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.