title: Android OnNewIntent not called
body: <p>I saw several approaches and I tried everything but couldnt make it work.I dont know why it is so complicated, in the docs it looks so easy! I want to trigger the OnNewIntent with a notification (the user clicks on it in the notification bar).</p>
  
  <p>Currently I have set my Activity as singleTop </p>
  
  <pre><code>&lt;activity
      android:name="-.-.-.MainMenuActivity"
      android:launchMode="singleTop"
      android:screenOrientation="portrait" &gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>This is the code where I create the Notification:</p>
  
  <pre><code>public void showNotification(String text, String componentId){
      NotificationCompat.Builder mBuilder =
              new NotificationCompat.Builder(this)
              .setSmallIcon(R.drawable.logo)
              .setContentTitle("Title")   
              .setAutoCancel(true)
              .setContentText(text);
  
      // Creates an explicit intent for an Activity in your app
      Intent resultIntent = new Intent(this, MainMenuActivity.class);
      if(!componentId.equalsIgnoreCase("")){                         
          resultIntent.putExtra("componentId", componentId);
      }   
      resultIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  
      PendingIntent resultPendingIntent = PendingIntent.getActivity(this, 0, resultIntent, 0);
      mBuilder.setFullScreenIntent(resultPendingIntent, false);
      mBuilder.setContentIntent(resultPendingIntent);
      NotificationManager mNotificationManager =
          (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      // mId allows you to update the notification later on.
      mNotificationManager.notify(0, mBuilder.build());
  }
  </code></pre>
  
  <p>This is the OnNewIntent method in my MainMenuActivity:</p>
  
  <pre><code>@Override
  protected void onNewIntent(Intent intent) {
      // TODO Auto-generated method stub
      super.onNewIntent(intent);
      setIntent(intent);
  
      ...
  }
  </code></pre>
  
  <p>I never get the OnNewIntent call. I dont know what I am doing wrong. I use only 2 activites in the whole app and the MainMenuActivity comes after the LoginActivity so the MainMenuActivity should always be on top of the stack anyways (I have more fragments where I replace them inside the MainMenuActivity).</p>
  
  <p>Any help would be appreciated! Thank you guys.</p>