我正在尝试在我的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);
谁能告诉我我做错了什么? TNX.