[Q][Dev]How does a Android AlarmClock work?
it maybe sounds a bit stupid, but i exactly want to know how the alarm clock works. If u create an alarm, the informations must be saved somewhere and if u activate an alarm there must be an service in the background which look if the time is right and then send an intent to an activity ? This service have to run every time the phone is on. Am i right ?
The reason why i want to know this, is because i'm writing an app which is in this point very similar to an android alarm clock. How it works:
The user enter a start and end time , in this time the app should do something, but it should not only work while the user is in the app, it should also work when the user is in another app, on the home screen or when the display is off.
I already tried it with 2 activities, a Broadcast, but it won't really work
Have you guys maybe an idea how i can reach my goal?
Hope i'm in the right section of this forum