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 ?

10x!

--



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)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android 2.0 Programming Books:  http://commonsware.com/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:

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

< http://developer.android.com/reference/android/content/Intent.html #ACTION_SHUTDOWN>But
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. how to transfer an action(ex:key press) from an Activity to other Activities

No you can't send events to other applications, sorry.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~

2. How to lighten LED in key driver, when user press any KEY.

The driver doesn't do this, it is done by the high-level PowerManager Java
service.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~

3. savedInstanceState

4. how can I clear a transparent or translucent canvas

5. Can android application overwrite the volume down/up key's behavior?

6. Layout Problem Listview in Scrollview

7. how can I clear a transparent or translucent canvas