All you need is to create a BroadcastReceiver that is bound to the BOOT_COMPLETED action.
Tout ce que tu as a faire c'est de creer un BroadcastReceiver qui recoit l'action BOOT_COMPLETED (avec la permission qui va bien). Exemple: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.alfray.timeriffic" ...> <application ...> <receiver android:name=".MyBroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> </application> <!-- Important --> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> </manifest> R/ On Thu, Apr 9, 2009 at 10:47 AM, kijiten orma <[email protected]> wrote: > > Translate English version : > > hello, > > 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 : > > bonjour, > > quelqu'un saurait-il comment définir un service qui se lancerai > automatiquement au démarrage 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 > nécessite une action extérieur. > > merci. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

