【发布时间】:2023-03-18 06:34:01
【问题描述】:
我想在 android 中触发通知时显示灯光
我尝试了下面的代码,但屏幕不显示光
if(isBlink) {
notification.ledOffMS=25;
notification.ledOnMS=100;
notification.ledARGB=Color.RED;
notification.flags=notification.flags|Notification.FLAG_SHOW_LIGHTS;
}
【问题讨论】:
标签: android notifications light