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

by kijiten orma » Mon, 13 Apr 2009 12:03:54 GMT

Sponsored Links
 Translate English version :


someone can be how to define a service that launch automatically at
startup and / or when installation without having to go through
"activity". I look beautiful everywhere, I do found that the functions
and BindService but StartService
which requires action outside.

thank you.

French version :


quelqu'un saurait-il comment dfinir un service qui se lancerai
automatiquement au dmarrage et/ou lors de l'installation sans pour
autant passer par une "activity". J'ai beau regarder un peu partout,
je ne trouve que les fonctions startService et BindService mais qui
ncessite une action extrieur.



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

by Mike Collins » Tue, 14 Apr 2009 02:49:27 GMT

 I have been down this road with my app, you probably don't want
to do this.

It is much better to have the app that uses the service start the
service when it needs it and simply leaves it running.



Sponsored Links

Other Threads

1. android.view.WindowLeaked when onPause() is called


i have an application running a background thread to do xml-parsing
while the ui-thread displays a progressdialog. the activity has a
handler to queue runnables from the other thread, mainly to display
messages. when the xml-thread is finished and the activity is left
using the back button on the emulator, i'm getting the following

android.view.WindowLeaked: Activity <Name> has leaked window
was originally added here

what am i doing wrong? i also can't find information on
'android.view.WindowLeaked', it seems to be undocumented.



2. Shared library/separate module not found

The package has also been removed, but it is
used in ApiDemos and the application can be installed. The package is in the same situation.
I don't understand why when java.awt is used the behavior is different.

3. Attempt to include a core VM class in something other than a core library

4. Activity Question

5. Manually restarting an Activity

6. 0.9 SDK Build Error

7. Problem 2nd launch of my application