> I am developing a ToDo reminder type of app for android.
>
> on creation of a new reminder an alarm and vibrator scheduler is
> created with a toast. This works on intents and broadcasts and is
> pretty straight forward stuff with putextras using the reminder id
> from the db.
>
> My problem is, if some one restart the phone, i guess all the
> scheduled alarm and vibrator tasks for the reminder will be killed.
> Once the phone restart again how to recreate the scheduler tasks.
>
> Can some one help me with this please?

Register a receiver to receive the ACTION_BOOT_COMPLETED broadcast Intent,
then re-register your AlarmManager alarms at that point.

http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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

Reply via email to