On Tue, Jun 7, 2011 at 3:23 PM, Simon Platten
<[email protected]> wrote:
> Thanks to pointers from "Mark Murphy" I now have an applicaiton than
> schedules alarms and works even when the phone is asleep, using the Wake
> Lock.
>
> However, if I switch the phone off and on again, the alarm is not scheduled
> and I then have to restart the application to reschedule the alarm.  Is
> there any way to make the alarm persist even through a shutdown of the
> device?

Nope. You need to reschedule them yourself, typically by registering a
BroadcastReceiver to watch the BOOT_COMPLETED broadcast:

https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnBoot

-- 
"Mark Murphy" (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.4 Available!

-- 
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