I want that the notification will be closed after the user is clicking on it. I saw that everybody saying to use flags, but I can\'t find the flags anywhere because I\'m usi
Easy, simply call this:
mBuilder.setAutoCancel(true);
Also, while it's not really necessary, if you really want to use FLAG_AUTO_CANCEL, just call this before you call mNotificationManager.notify:
FLAG_AUTO_CANCEL
mNotificationManager.notify
mBuilder.build().flags |= Notification.FLAG_AUTO_CANCEL;