OnNewIntent does not show Toast
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11304267/displaying-a-toast-notification-in-android-framework">Displaying a Toast notification in Android framework</a>  </p>
</blockquote>



<p>I have an activity and in onResume there is the following Code:</p>

<pre><code>super.onResume();
Intent intent = new Intent(this, this.getClass());
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0);
nfcAdapter.enableForegroundDispatch(this, pendingIntent, null,null);
</code></pre>

<p>In the onNewIntent(Intent intent) function I have:</p>

<pre><code>super.onNewIntent(intent);
setIntent(intent)
..
...

Toast.makeText....
</code></pre>

<p>But the Toast does not show up - does someone have a solution for this problem?</p>
