Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show alarms in the widget #248

Open
adrcotfas opened this issue Jan 11, 2017 · 6 comments
Open

Show alarms in the widget #248

adrcotfas opened this issue Jan 11, 2017 · 6 comments

Comments

@adrcotfas
Copy link

It would be very nice if alarms would be included in the widget too.

@yvolk
Copy link
Collaborator

yvolk commented Mar 26, 2017

Do you mean "Reminders"? Please see #220

@adrcotfas
Copy link
Author

I was referring to the alarms set by the clock app, which also makes a small icon appear in the status bar.

@yvolk
Copy link
Collaborator

yvolk commented Mar 30, 2017

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.

@adrcotfas
Copy link
Author

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.

@yvolk
Copy link
Collaborator

yvolk commented Mar 30, 2017

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()

@adrcotfas
Copy link
Author

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.

@yvolk yvolk changed the title show alarms in the widget Show alarms in the widget Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants