我想在我的前台活动中启用LED闪烁,但只有当屏幕关闭时才有效。
是否有可能在活动进行时打开具有屏幕的LED灯?
我的代码:
protected void led() {
Notification notif = new Notification();
notif.ledARGB = 0xFF0000ff;
notif.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_ONGOING_EVENT;
notif.ledOnMS = 800;
notif.ledOffMS = 200;
notificationManager.notify( LED_NOTIFICATION_ID, notif );
}