C'est le code de base android:
NotificationManager nm = ( NotificationManager ) getSystemService( NOTIFICATION_SERVICE );
Notification notif = new Notification();
notif.ledARGB = 0xFFFF0000;
notif.flags = Notification.FLAG_SHOW_LIGHTS;
notif.ledOnMS = 100;
notif.ledOffMS = 100;
nm.notify(0, notif);
Et la led reste verte.. Elle devrait être jaune.
Autre chose, est il possible d'allumer la led pour autre chose qu'une notification ? Et si oui, comment ?
Merci !