有没有办法做到这一点?我在这里找到了一些东西,但它对我不起作用:/
这是我尝试过的代码:
NotificationManager notifMgr = ( NotificationManager ) getSystemService(
NOTIFICATION_SERVICE );
Notification notif = new Notification();
notif.ledARGB = Color.BLUE;
notif.flags |= Notification.FLAG_SHOW_LIGHTS;
notif.ledOnMS = 1;
notif.ledOffMS = 0;
notifMgr.notify( 1234, notif );