title: Add a new view in app after clicking on notification in android?
body: <p>I am actually working with <code>notifications</code> in Android. </p>
  
  <p>To do my application test, I follow <a href="http://developer.android.com/guide/topics/ui/notifiers/notifications.html" rel="nofollow">the guide on android.developer</a> .</p>
  
  <p>I create my notification, it works well. When I click on it, it removes the notification from the notification tab and after I go to my Activity.</p>
  
  <p><strong>Here is the code I use to do that :</strong> </p>
  
  <pre><code>    public void createSimpleNotification() {
      NotificationCompat.Builder  mNotifBuilder = new NotificationCompat.Builder(this.getApplicationContext())
      .setSmallIcon(R.drawable.ic_notif).setContentTitle("Simple notif").setContentText("Welcome on our app, click here");
  
      Intent resultIntent = new Intent(this, MainActivity.class);
  
      TaskStackBuilder mStackBuilder = TaskStackBuilder.create(this.getApplicationContext());
      mStackBuilder.addParentStack(MainActivity.class);
      mStackBuilder.addNextIntent(resultIntent);
  
      PendingIntent resultPendingIntent = mStackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
  
      mNotifBuilder.setContentIntent(resultPendingIntent);
  
      NotificationManager mNotifManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      mNotifManager.notify(0, mNotifBuilder.build());
  }
  </code></pre>
  
  <p>I only have my <code>MainActivity</code> and a <code>Button</code>. When I click on the button, the notification appears and I click on notification, i come back to my MainActivity.</p>
  
  <p><strong>Here is my problem :</strong></p>
  
  <p>I want to update my <code>MainActivity UI</code> after clicking on the notification. After clicking on notification, I need to create a <code>Dialog</code> who shows the text of the notification. </p>
  
  <p>How can I modify my <code>Activity</code> and add new <code>View</code> after clicking on a notification?</p>