0

Currently after click on notification I run new activity of my app

Intent notifyIntent = new Intent(this, MainActivity.class);
        PendingIntent intent = PendingIntent.getActivity(
                this, 0, notifyIntent, PendingIntent.FLAG_UPDATE_CURRENT
        );

and in Notification Builer:

 .setContentIntent(intent)

But this is always new activity.
I want to get my old activity from backstack after click on notification.
Is it possible ?

purcha
  • 371
  • 3
  • 12
  • 1
    I think that's what you're searching for: https://stackoverflow.com/questions/5502427/resume-application-and-stack-from-notification – Marco Fincato Oct 24 '18 at 12:10
  • Does this answer your question? [Resume application and stack from notification](https://stackoverflow.com/questions/5502427/resume-application-and-stack-from-notification) – Delwyn Pinto Feb 12 '20 at 08:01

0 Answers0