Open adrcotfas opened 7 years ago
Do you mean "Reminders"? Please see https://github.com/plusonelabs/calendar-widget/issues/220
I was referring to the alarms set by the clock app, which also makes a small icon appear in the status bar.
The Calendar Widget shows all "events", which are exposed/provided via the Android Calendar Provider API ( https://developer.android.com/guide/topics/providers/calendar-provider.html ). This allows us to show events, created by any application, which supports this API. This means that some "Clock application" could also be a source of "Alarm events". If you will find such an application, please let us know here: this will be helpful for others. If not, we will have to use "reminders" , which already exist in Calendar applications and which are shown in the Calendar Widget.
I was talking about the stock Clock application which does not create an event or reminder within the Calendar but does set an alarm. Probably there is a way to access the list of active alarms and then add them to the Calendar Widget. See http://stackoverflow.com/questions/3147179/get-all-alarms-saved-in-the-alarm-application. There is a similar feature on IOS, swiping right will show the list of future events and clock alarms.
It looks like what you are talking is about the "Alarm Clock events" and they can be accessed via the AlarmManager https://developer.android.com/reference/android/app/AlarmManager.html As I see, there is a method to see only one, next scheduled Alarm Clock: https://developer.android.com/reference/android/app/AlarmManager.html#getNextAlarmClock()
Well, I guess that's fine. An usual use case would be to set your morning alarm once per day or have it repeating on certain days. You would not be interested in seeing the whole list of alarms, just the next one.
It would be very nice if alarms would be included in the widget too.