複数の PendingIntent を作成するにはどうすればよいですか? いくつかの通知があり、ユーザーが最後の通知まで押すとすべて問題ありませんが、それ以外の場合は通知をクリックしても応答しません。私のコードは次のとおりです。
Intent notificationIntent = new Intent(context, MainActivity.class);
notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK).setAction("ShowDialog");
notificationIntent.putExtra("args", Tools.getInstance().generateBundle(progressId, lastId));
notificationBuilder.setContentIntent(PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT));
理由は FLAG_CANCEL_CURRENT だと思いますが、PendingIntent のすべてのフラグが私の問題を解決できません。