以编程方式永久启用和禁用 android 中闪烁的 LED 通知灯 [英] Permanently enable and disable blinking LED notification light in android programmatically

查看:78
本文介绍了以编程方式永久启用和禁用 android 中闪烁的 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.

You can only control the led if your app raies a notification when no other apps have raised a notifiction.

在某些设备上可以绕过android直接在unix shell中控制,但显然不推荐这样做.

It is possible on some devices to bypass android and control it directly in unix shell, but this is obviously not recommended.

这篇关于以编程方式永久启用和禁用 android 中闪烁的 LED 通知灯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆