Start a service on device start up.

by poohtbear » Sat, 30 Jan 2010 22:08:50 GMT

Sponsored Links
 Is there an API, or a registry i can do i nthe manifest to make sure
my service is being run at the device start up and being shut down
before the device shuts off ?



Start a service on device start up.

by Mark Murphy » Sat, 30 Jan 2010 22:35:30 GMT


Yes on the former -- listen for the BOOT_COMPLETED broadcast Intent.

No on the latter, as far as I know.

Mark Murphy (a Commons Guy)  | 

Android 2.0 Programming Books: 


Sponsored Links

Start a service on device start up.

by Dianne Hackborn » Sun, 31 Jan 2010 04:51:35 GMT

 This is sent when the system is cleanly shutting down: #ACTION_SHUTDOWN

you should never rely on receiving this intent -- it is not at all unusual
for the device to go off without any chance of this being sent (such as the
user pulling their battery, which is not uncommon).


Other Threads

1. Hey Android Developers

hello everyone on this group. i wanna learn android, can any one tell
me from where i have to start and what are the main or important thing
that i should learn to being an android developer. i m waiting for all
of your replies.



2. to show changes simultaneously

i made TabgroupActivity which shows two tabs when i make changes in
one group database change it isnt shown in next tab. when i restart
the application then the changes are seen


3. getHorizontalViewAngle() Question ?

4. How to change database during application

5. Create ImageView in Java or Xml?

6. About scroll bar

7. WebViewClient callbacks called too often