title: How could I make the notification icon disappear when user clicks on notification action?
body: <p>I receive notification on reply action 
  I'm answering using action <code>INTENT.SEND</code>  using gmail 
  but I want the icon could be disappeared ,when user clicks on action in notification part.
  I know I can cancel the icon by cancelling the notification when it receives in <code>Activity</code> the notificationId , but in my case I'm just using the standard Intent which I could not handle. </p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_SEND);
          i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
          i.putExtra(Intent.EXTRA_EMAIL, new String[]{"recipient@example.com"});
          i.putExtra(Intent.EXTRA_SUBJECT, "subject of email");
          i.putExtra(Intent.EXTRA_TEXT, "body of email");
          PendingIntent dismissIntent = PendingIntent.getActivity(this.getApplicationContext(), 0, i, PendingIntent.FLAG_CANCEL_CURRENT);
  
  NotificationCompat.Builder builder = new NotificationCompat.Builder(this.getApplicationContext());
      builder.setDefaults(Notification.DEFAULT_ALL) 
              .setSmallIcon(R.mipmap.ic_launcher) 
              .setContentTitle("Message from test")
              .setContentText("message")
              .setAutoCancel(true)
              .addAction(R.mipmap.ic_launcher, "Dismiss", dismissIntent)
  </code></pre>