How-to start service automatically on system startup and on installation

by Dianne Hackborn » Tue, 14 Apr 2009 07:33:07 GMT


Sponsored Links
 To amplify -- just starting your service at boot and leaving it running all
of the time is NOT recommended.  It consumes a lot of resources, if nothing
else a whole process sitting there doing nothing (presumably) most of the
time, when that memory could be used for other things.







-- 
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, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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



Other Threads

1. How to check if System Wallpaper is now Visible to the user?

Hi.

I'm creating a Service that will run in the background and do many
tasks.

And one of those tasks will need to verify that the wallpaper is
currently visible to the user or not.

Is threre a way to check(by code) if the System Wallpaper is currently
'visible' to the user? (eg. when the user is at Home screen)

Thank you in advance. =)
--~--~---------~--~----~------------~-------~--~----~

2. .getSelectedItemId() always selecting 0 when using the touch screen

Actually i figured that out between posts... but since you cannot use
an int on creating the context menu i run into the same issue on any
item that requires a long click





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

3. Why Exit zygote because system server (1623) has terminated?

4. .getSelectedItemId() always selecting 0 when using the touch screen

5. Re-use Layouts

6. Setting Proxy on a Real Device

7. positron 1.0 (an acceptance testing tool) and android-ant