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. What to do when any media files are deleted?

Dear.

I am testing Bluetooth file transfer.

When any files are transfered by FTP via BT,
mMediaScanner.scanFiles(mFiles, null);  is used to notify MedisScanner
adding new media files.

But if any files are deleted by FTP, what api should be called?

To sum it up, current problem is that,
1. When new media files are added, MediaScanner is notified through
MediaScanner.scanFiles(mFiles).
2. but how should MediaScanner be notified when any files are deleted
on SD card?

Please share your suggestion.

Thanks.

2. permissions to start SystemService in package

Hi,

I am trying to add new system service and following steps mentioned by
Dianne Hackborn @

3. how to put Search on Google MAP>

4. Extra SDK and NDK ability + couple questions

5. How to implement FADE effect in background of ListView?

6. Hprof dump support in SDK 2.1

7. How to implement FADE effect in background of ListView?