How to set click listener for notification?

As for yoshi24’s comment, you may be able to set extras like this. final Intent intent = new Intent(this, MyActivity.class); intent.setData(data); intent.putExtra(“key”, “value”); final PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intent, 0); You need to be aware of this as well before going for pending intents https://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity UPDATE some thing like this will work for you … Read more

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