AlarmManager alarms are lost after a reboot or power down/up cycle.

Implement a receiver for BOOT_COMPLETED, and reset the alarms as needed.

-- Kostya

24.03.2011 15:21, Nalin Chhajer пишет:
Hi,
I am developing a application that requires to go for server call 2
times every day. So I used alarmmanager to set up alarm to repeat
after every 12 hours. The application runs fine and I receive
broadcast every 12 hours. But when I switch off and switch on my
mobile, the alarmmanger doesnot fire up. It seems like either
alarmmanager erases all the data after mobile phone is switch off or
broadcast receiver is cancelled.
I want alarmmanger to be consistent and once set up the alarm timing
it should call my receiver even after boot-up.

Please help me out how to solve this problem. Thanks in advance for
any help.



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to