Bonjour,
Le premier service ne démarre pas, le second oui, je ne comprends pas pourquoi.
Voici mon code
Quelqu'un saurait-il m'indiquer comment procéder ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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.........."); } }
Merci d'avance pour votre aide.
Partager