문제

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 ?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top