title: Clearing the old activities so they don't show up on new activity click
body: <p>So what I have is a notification in my status bar which when clicked by the user brings up an activity with no title, to replicate a dialog. But I have a problem. If I open up the app, then just click the home button, and then click the notification in my status bar. It brings up apps main activity with the notificatoins activity stacked on the top. What I want to do is make it so when I click the notification it clears all the bottom activities so that never happens. Here's the code I use to start the notification activity </p>
  
  <pre><code>// Send Notification
  Intent intent1 = new Intent(this, Dialog.class);
  intent1.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent1, 0);
  NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
  .setSmallIcon(R.drawable.ic_stat_quick_tweet_icon)
  .setContentTitle("Dialog")
  .setContentText("Touch for more options")
  .setWhen(System.currentTimeMillis())
  .setContentIntent(pIntent)
  .setAutoCancel(false).setOngoing(true);
  NotificationManager nm = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
  Notification notif = builder.getNotification();
  nm.notify(1, notif);
  </code></pre>