Showing flashing LED for foreground activity / screen on
I'm trying to turn the LED-flashing on for my activity in foreground, but it works only when the screen is off. Is it possible to turn the LED on for active activity with the screen on? My code: protected void led() { Notification notif = new Notification(); notif.ledARGB = 0xFF0000ff; notif.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_ONGOING_EVENT; notif.ledOnMS = 800; notif.ledOffMS = 200; notificationManager.notify( LED_NOTIFICATION_ID, notif ); } At first Android LED indicator is very hardware dependent. Second - there is no API for managing LED instead of Notification class