title: Android remove notification(created by mNotifyBuilder) on click
body: <p>i found many answer to this, but none help :(
  I have this code:</p>
  
  <pre><code>private static void generateNotification(Context context, String message) {
      int icon = R.drawable.icon;
      NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
  
      int notifyID = 96;
      NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(context)
          .setContentTitle("MyApp")
          .setContentText(message)
          .setDefaults(Notification.DEFAULT_ALL)
          .setAutoCancel(true)
          .setSmallIcon(icon);
  
      Notification notification = mNotifyBuilder.build();
      notification.flags |= Notification.FLAG_AUTO_CANCEL;
  
      mNotificationManager.notify(notifyID, notification);
  }
  </code></pre>
  
  <p>But if i click on notification nothing happen and it is still there. In documentation is, that i need to use:</p>
  
  <pre><code>.setAutoCancel(true)
  </code></pre>
  
  <p>Some one have similar problem and somebody tells him to use:</p>
  
  <pre><code>notification.flags |= Notification.FLAG_AUTO_CANCEL;
  </code></pre>
  
  <p>I use both, but no result :(
  Thank you very much for answers. :)</p>