L
L
LordPixel2015-12-29 01:50:25
Android
LordPixel, 2015-12-29 01:50:25

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

1 answer(s)
H
Handy, 2015-12-30
@Handy

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 question

Ask a Question

731 491 924 answers to any question