Disable/enable notification led

前端 未结 2 1572
轻奢々
轻奢々 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

提交回复
热议问题