title: Close status bar when button notification is clicked
body: <p>How can I close status bar after notification button click?</p>
  
  <p>I tried <a href="https://stackoverflow.com/a/15571784/1735077">this</a>, but I had an exception:</p>
  
  <pre><code>java.lang.NoSuchMethodException: collapse []
     at java.lang.Class.getConstructorOrMethod(Class.java:460)
     at java.lang.Class.getMethod(Class.java:915)
     ...
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
      .setSmallIcon(R.drawable.icon)
      .setContentTitle("Sync Failed")
      .setContentText("Lorem ipsum dolor sit amet")
      .setStyle(new NotificationCompat.BigTextStyle().bigText("Lorem ipsum dolor sit amet"))
      .addAction(R.drawable.change, "Change Pass", pChangePass)
      .addAction(R.drawable.remove, "Ignore", pIgnore)
      .setAutoCancel(false);
  mNotificationManager.notify(accountUnique, builder.build());
  </code></pre>
  
  <p>At NotificationIntent class</p>
  
  <pre><code>@Override
  public void onReceive(Context context, Intent intent) {
      int notificationID = intent.getExtras().getInt("NOT_ID");
      this.callbackContext = StatusBarNotification.getCallback();
      this.mNotificationManager = StatusBarNotification.getNotificationManager();
  
      this.mNotificationManager.cancel(notificationID);
      this.callbackContext.success(returnJSON(intent));
  }
  </code></pre>