android - how to create a time change listener -


i have application create persistent notification need update notification each day there way create time listener or how otherwise need update performed if activity not started, if user did not open application, saw page it's app still in started state once it's in pause state... won't work anymore... idea?

you use alarmmanager.

http://developer.android.com/reference/android/app/alarmmanager.html

set alarm trigger @ time want handle event.

when complete event code, set new alarm before exit.

note alarms not survive reboot need set them again @ device boot (if required)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -