I would like to send several notifications to the status bar and allow the user to close each notification individually. I can do that with the following lines:
Notification notification = new Notification(icon, tickerText, when);
notification.flags |= Notification.FLAG_AUTO_CANCEL;
PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(), 0, new Intent(), 0);
… but clicking on one notification clears the notification itself but also closes the notification window.
I was wondering if it is possible to clear a notification from notifications window but keeping the notification window open in order to continue clearing other notifications?
When you click on notification it takes you to the respective application. nd close the notification window. its a default behavior.