最近开发中模块功能,使用NotificationManager触发多个Notification:
private void showIMNotification(Context context, String ticker,
Bitmap defaultBitmap, UnreadEntity unreadEntity, int notificationId) {
Intent intent = new Intent(CHATATION_FLAG);
intent.putExtra("chat_session_key", unreadEntity.getSessionKey());
NotificationManager manager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,
intent, PendingIntent.FLAG_UPDATE_CURRENT);
Notification notify1 = new Notification();
notify1.icon &