Thanks for the idea. I think I will go with this keeping in mind the concerns raised by Diane in this email thread.
On Thu, Jul 23, 2009 at 11:48 AM, Mark Murphy <mmur...@commonsware.com>wrote: > > > I have a need to create a background service that starts up during the > > system boot up, and keeps running until the device is powered down. There > > is > > no UI or Activity associated with this. I created a class extending the > > android Service class, and added the setttings to the AndroidManifest.xml > > file. When I launch this service in the emulator, I don't see this > > launched > > at all. I have overrided almost all the methods in the Service class to > > put > > log statements, but none of them shows up. > > Use a BroadcastReceiver (<receiver>) for BOOT_COMPLETED, and have that > BootReceiver start the service. AFAIK, Android will not directly start up > a service for that Intent. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > Android App Developer Books: http://commonsware.com/books.html > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---