1

我用它来通知,但我想禁用通知灯的闪烁。我该怎么做请给我建议

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

1 回答 1

1

这个怎么样:

builder.setLights(0xff00ff00, 1000 * 60 * 60, 1); // on for one hour, off for 1ms
于 2013-09-18T04:33:01.387 回答