我正在尝试在我的 Nexus One 上尝试 LED 颜色,但在创建任何带有通知的 LED 灯(颜色)时遇到问题。LED 灯不工作。我已经测试了硬件故障,这不是问题。这是代码。
Notification notification = new Notification(R.drawable.icon, tickerText, System.currentTimeMillis());
notification.ledARGB = Color.WHITE;
notification.ledOnMS = 300;
notification.ledOffMS = 1000;
notification.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_AUTO_CANCEL;
//notification.defaults = Notification.DEFAULT_ALL;
notification.setLatestEventInfo(this, getText(R.string.tekst1),
text, makeIntent(R.drawable.icon));
notificationManager.notify(R.layout.main, notification);
有人可以告诉我我做错了什么吗?肿瘤坏死因子。