EDIT : note: I completely repeated my question.
I have an application with two Activites : A and B. Activity A - MAIN . So, the application starts, and A appears on the screen. The user presses a button on it, and a new Activity B appears on the screen.
So, now in my "back stack" there are 2 actions: A and B.
Now I press the Home key and then click the icon of my application on the launch bar: Activity B appears on the screen ( not A ) as much as possible since this is a lot of activity in my task.
Now the question is: how can I do Intent to open the current top Activity my task?
I need to use it in Notification : when the user clicks on my Notification , the top Activity this task should appear on the screen, not the specified one.
I have tried many Intent flags, such as SINGLE_TOP and others, but I still can not get what I need.
Does anyone know a solution?
android android-activity notifications
Dmitry Frank
source share