Answer the question
In order to leave comments, you need to log in
How to implement an alarm clock on android?
Such a thing, I'm writing an alarm clock for android. I understand that you need to do it with the help of AlarmManager and BroadCast and Service. But I can't figure out how to make it so that I can show active alarms on the screen?
Answer the question
In order to leave comments, you need to log in
The peculiarity of using AlarmManager is that when triggered and when the system is rebooted, they must be reinstalled (the implementation on different versions of the api is slightly different). As an idea, store information about alarms in the / sharedPreferences database, and use the same AlarmManager based on this information.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question