是否可以通过编程方式禁用和启用 Android 设备上的 LED 指示灯?我指的不是像在通知中那样打开和关闭它。我在 api 中没有看到任何可以这样做的东西。如果可能的话,我猜这是特定于硬件的。
最佳答案
是的,当然有办法......
android.provider.Settings.System.putInt(getContentResolver(),
"notification_light_pulse", 1);
1 - 指示状态
0 - 表示关闭状态
关于android - 禁用/启用通知 LED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3304971/