Removing notification after click
<p>I just started working with notifications and now I'm trying to remove the notification and launch the app once the notification has been tapped in the notificationcenter.</p>

<p>I tried to work with the following code:</p>

<pre><code>import android.app.NotificationManager;

public class ExpandNotification {
     private int NOTIFICATION = 546;
     private NotificationManager mNM;

     public void onCreate() {
        mNM.cancel(NOTIFICATION);
        setContentView(R.layout.activity_on);
        //Toast.makeText(this, "stopped service", Toast.LENGTH_SHORT).show();
    }
</code></pre>

<p>I think this code executes the other class when tapped?</p>

<pre><code>PendingIntent contentIntent = PendingIntent.getActivity(this, REQUEST_CODE, new Intent(this, ExpandNotification.class), 0);
</code></pre>

<p>However the notification doesn't go away, nor does the application launch.
But I'm able to swipe it to left or right to remove it but that's not what I want..</p>
