Looking for help with an intent

Abalsam

Active member
Last edited:

MacroDroidDev

Administrator
Staff member
As I understand it these are just options for when you doing something such as clearing an alarm.

For example if you want to clear an alarm with the label "morning wakeup" you would use the AlarmClock.ACTION_DISMISS_ALARM and then set an extra with key AlarmClock.EXTRA_ALARM_SEARCH_MODE and value AlarmClock.ALARM_SEARCH_MODE_LABEL

This is not used to search for alarms and return details for them if that is what you are hoping for.
 

Abalsam

Active member
It was. Right now the only way to discover the time for the next alarm set by the clock app is to screen scrape the app. Was hoping for something less clunky and more reliable.

What gave me hope was an intent listed of search mode all but when I try to run it it fails...
 

Abalsam

Active member
This is what I found. You can use the system setting magic text in the set variable to get an alarm: View attachment 2159
Currently I can get the next alarm from a plug in. Works great but that includes macrodroid and other internal alarms. If I specifically wanted the next "Clock" alarm, currently the only way I can do it is by launching clock and screen scraping (very cumbersome).
 
Top