Pregunta

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 ?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top