我原以为任何Android应用只能有一个活动通知。
但我现在在documentation中读到:
You call cancelAll(), which removes all of the notifications you previously issued.
意味着可以同时存在多个通知?
答案 0 :(得分:0)
private static final int NOTIFICATION_ID =1;
NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
manager.notify(NOTIFICATION_ID, builder.build());