重複の可能性:
Android フレームワークでのトースト通知の表示
アクティビティがあり、onResume には次のコードがあります。
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);
onNewIntent(Intent intent) 関数には次のものがあります。
super.onNewIntent(intent);
setIntent(intent)
..
...
Toast.makeText....
しかし、トーストが表示されません - 誰かがこの問題の解決策を持っていますか?