notificationmanager
Android – notification manager, having a notification without an intent
You may pass the parameter PendingIntent.getActivity(getApplicationContext(), 0, new Intent(), 0) instead of null on notification.setLatestEventInfo(context, contentTitle, contentText, null);
Multiple notifications to the same activity
If the PendingIntent has the same operation, action, data, categories, components, and flags it will be replaced. Depending on the situation i usually solve this by providing a unique request code either as static values (0,1,2) or the row id of the data I’m receiving from the DB. PendingIntent.getActivity(context, MY_UNIQUE_VALUE , notificationIntent, PendingIntent.FLAG_ONE_SHOT); Then I … Read more