Mise en oeuvre des Services
Bonjour,
Le premier service ne démarre pas, le second oui, je ne comprends pas pourquoi.
Voici mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| public void StartService() {
TextView3.setText("PARTANT : VISIBLE SUR LE RESEAU");
Intent BindIntent = new Intent(InterMediation.this, IMService.class);
if (startService(BindIntent) != null) {
Log.i("INERMEDIATION", "START SERVICE de communication..........");
}
Intent BindIntent1 = new Intent(InterMediation.this, BackgroundService.class);
if (startService(BindIntent1) != null) {
Log.i("INERMEDIATION", "START SERVICE de d'Ecoute Serveur..........");
}
} |
Quelqu'un saurait-il m'indiquer comment procéder ?
Merci d'avance pour votre aide.