homer__simpsons Posted May 3, 2011 Share Posted May 3, 2011 Je voudrais faire un programme qui se lance au démarrage... comment faire? Link to comment Share on other sites More sharing options...
eephyne Posted May 4, 2011 Share Posted May 4, 2011 Utilise un BroadcastReceiver avec l'intent android.intent.action.BOOT_COMPLETED (sans oublier d'ajouter la permission qui va bien dans le manifest) Link to comment Share on other sites More sharing options...
homer__simpsons Posted May 4, 2011 Author Share Posted May 4, 2011 C'est quoi la permission?? Message envoyé avec l'application Forum Frandroid Link to comment Share on other sites More sharing options...
nbatteur Posted May 4, 2011 Share Posted May 4, 2011 http://developer.android.com/reference/android/Manifest.permission.html Je dirais RECEIVE_BOOT_COMPLETED ^^ Link to comment Share on other sites More sharing options...
Topper Harley Posted May 5, 2011 Share Posted May 5, 2011 Pourquoi voudrais-tu faire ça ? L'utilisateur doit lancer ton application, mais ton application ne doit jamais venir au premier plan sans que l'utilisateur ne l'ait expressément demandé ! EDIT: ma remarque est si tu veux lancer une activité si c'est pour lancer un service, effectivement il faut un receiver qui écoute BOOT_COMPLETED Link to comment Share on other sites More sharing options...
homer__simpsons Posted May 5, 2011 Author Share Posted May 5, 2011 Je veux juste faire un petit truc en tâche de fond... Vous comprendrez à sa sortie! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.