Disable/enable notification led

前端 未结 2 1573
轻奢々
轻奢々 2020-12-09 23:56

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

相关标签:
2条回答
  • 2020-12-10 00:46

    Yea sure there is a way...

    android.provider.Settings.System.putInt(getContentResolver(), "notification_light_pulse", 1);

    1 - indicate on state 0 - indicate off state

    0 讨论(0)
  • 2020-12-10 00:47

    I have not seen any APIs for dealing with the LEDs other than the Notification class.

    0 讨论(0)
提交回复
热议问题