我如何在android中设置通知灯而不闪烁

时间:2013-09-18 04:27:34

标签: android android-notifications

我用它来通知但我想禁用通知灯的闪烁。我是怎么做的,请指教我

Notification.Builder builder = new Notification.Builder(context);
builder.setLights(0xff00ff00, 300, 100)
.
.
.

1 个答案:

答案 0 :(得分:1)

这个怎么样:

builder.setLights(0xff00ff00, 1000 * 60 * 60, 1); // on for one hour, off for 1ms