GAYET Thierry wrote:
> Hi, because i need to start a background deamon not just when an
> application need to bind with, i have searched a way to auto-start it.
> One interesting reply was given in this maillist and i wanna more
> explanation on the way to catch BOOT_COMPLETED_ACTION from an
> IntentReceiver ?
> 
> The previous thread that i have found on this maillist was this one:
> 
> " Use an IntentReceiver and catch the BOOT_COMPLETED_ACTION. Then in the
> IntentReceiver call Context.startService() (but use carefully, only when
> you really need a background *service* to run all the time). "
> 
> http://markmail.org/message/7r6afkcusvwe2wfz#query:android%20autostart%20service+page:1+mid:uee3n7yjip6nsmfr+state:results

You'll see this covered as part of:

http://androidguys.com/?p=4411

Sample code implementing BroadcastReceivers for BOOT_COMPLETED can be
found at:

http://commonsware.com/AdvAndroid/

(scroll down, download the "Source Code" from the link, and look for
SysEvents/OnBoot and SysServices/Alarm projects)

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 0.9 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