Код: Выделить всё
notif.setLatestEventInfo(context, context.getText(R.string.app_name).toString(), str, pi);
notif.ledARGB = color.white;
notif.ledOnMS = 500;
notif.ledOffMS = 500;
notif.flags|=Notification.FLAG_AUTO_CANCEL;
notif.flags|= Notification.FLAG_SHOW_LIGHTS;
notif.defaults=Notification.DEFAULT_SOUND | Notification.DEFAULT_VIBRATE;
nm.notify(notifID,notif);