Is it possible to programmatically disable and enable the led indicator light on an Android device? I am not referring to just turning it on and off as in a notification. I did not see anything in the api that would do so. I am guessing this is hardware specific if it is possible at all.
Asked
Active
Viewed 5,723 times
2 Answers
9
Yea sure there is a way...
android.provider.Settings.System.putInt(getContentResolver(),
"notification_light_pulse", 1);
1 - indicate on state
0 - indicate off state

Robin Dijkhof
- 18,665
- 11
- 65
- 116

Sudheesh VS
- 257
- 3
- 4
4
I have not seen any APIs for dealing with the LEDs other than the Notification
class.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
I don't believe there is anything in the Notification class that will allow you to disable the led or am I missing something? – JDM Jul 22 '10 at 01:46
-
1@martinjd: Correct. Hence, I do not think there are any APIs in Android that let you disable the LEDs. I apologize for not making that clearer in my original answer. – CommonsWare Jul 22 '10 at 01:52