Cool it helps.
Thx Mark.


On Feb 14, 6:45 pm, Mark Murphy <[email protected]> wrote:
> wonglik wrote:
> > My problem is that alarm is not triggered after mobile is restarted
> > and is TURNED ON on the expected time.
>
> > Is there something I missed? Should I do some extra work to keep alarm
> > scheduled after restart?
>
> Alarms are automatically flushed on a reboot. If you need your alarm to
> be scheduled after a reboot, you will need to request the
> RECEIVE_BOOT_COMPLETED permission and register a BroadcastReceiver in
> your manifest for the BOOT_COMPLETED broadcast.
>
> You can see a sample of that here:
>
> http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to