Permanantly启用和禁用的Android programmtically闪烁LED通知指示灯 [英] Permanantly enable and disable blinking LED notification light in android programmtically
问题描述
我一直在寻找禁用和启用通过code中的LED通知灯的能力。我看到这个线程禁用/启用通知LED ,但它是很老,我想知道,如果新的API版本具有完全将其关闭一些支持。
I have been looking for the ability to disable and enable the LED notification light through code. I saw this thread Disable/enable notification led, but it is quite old and I was wondering if the new API versions has some support for turning it off completely.
推荐答案
您只能控制LED,如果您的应用程序raies时,没有其他应用都提出了notifiction的通知。
You can only control the led if your app raies a notification when no other apps have raised a notifiction.
有可能在某些设备上绕过Android和直接在UNIX外壳控制它,但是这显然是不推荐的。
It is possible on some devices to bypass android and control it directly in unix shell, but this is obviously not recommended.
这篇关于Permanantly启用和禁用的Android programmtically闪烁LED通知指示灯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!