title: how to Hide notification after tap in android application
body: <p>This is the code that gives notification on start of service </p>
  
  <pre><code>NotificationCompat.Builder mbuild = new NotificationCompat.Builder(getApplicationContext());
  
  Intent in = new Intent(getApplicationContext(), MainActivity.class);
  PendingIntent resultIN =   PendingIntent.getActivity(getApplicationContext(),code,in,NOTIFICATION_COUNT);           mbuild.setSmallIcon(R.drawable.images1);    
  mbuild.setContentText(NOTIFICATION_COUNT +" New Message");
  mbuild.setContentIntent(resultIN);          //mbuild.addAction(R.drawable.notifications,NOTIFICATION_COUNT +"New Messages",resultIN);
  
   NotificationManager nmagr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
  nmagr.notify(1, mbuild.build());
  </code></pre>
  
  <p>everyting is working correct ..the code opens the target activity but the notification still stays there in the notification bar.
  i have tried useing mbuil.setautocancel(true); but its doing nothing</p>