Frage

I want my app to do is: Once a day check if the user have written a note, If not, add a notification to the statusbar, reminding the user to start the app, and write a note.

Can I use the alarm-manager or do I have to use a Service for this? Do anyone know where to find a good tutorial on this, or have some example code ?

War es hilfreich?

Lösung

Use AlarmManager. Permanently running a Service just for scheduling a regular task would be an overkill.

Have a look at this question, for example: AlarmManager Android Every Day

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top