クリックするとアプリがバックグラウンドから前面に表示されます。私は次のコードを使用しています:アプリをクリックすると通知する
NotificationManager noma = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
PendingIntent pen = PendingIntent.getActivity(Timer.this, 0, intent, 0);
intent.putExtra("key", "trigerred");
String body = "This is a message";
String title = "This is title";
Notification no = new Notification(R.drawable.ic_launcher, body, System.currentTimeMillis());
no.defaults = Notification.DEFAULT_ALL;
no.setLatestEventInfo(this, title, body, pen);
noma.notify(uniqueID, no);
新しい意図を作成する通知をクリックすると、最後に作成された意図が前面に表示されます。どのように私はこれを行うことができますか?
が重複する可能性を試してみてください[通知]をクリックします - のアプリケーションに送る](http://stackoverflow.com/questions/3172966/click-notification-send-to-application) –
郵便番号場所あなたはあなたの意図オブジェクトを取得します。 – Natali
http://stackoverflow.com/questions/6575730/notification-to-restore-a-task-rather-than-a-specific-activityへの回答を参照してください。 –