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:
mBuilder.build().flags |= Notification.FLAG_AUTO_CANCEL;