user3521479
user3521479

Reputation: 585

How to turn trackball LED on in Android from code?

Is there any way to do this? I've found something here, but it does not work for me:/

This is the code I,ve tried:

NotificationManager notifMgr = ( NotificationManager ) getSystemService(
            NOTIFICATION_SERVICE );
Notification notif = new Notification();
notif.ledARGB = Color.BLUE;
notif.flags |= Notification.FLAG_SHOW_LIGHTS;
notif.ledOnMS = 1;
notif.ledOffMS = 0;

notifMgr.notify( 1234, notif );

Upvotes: 0

Views: 136

Answers (0)

Related Questions