EDIT: please note: i completely re-explained my question.
I have application with two Activites
: A and B. Activity
A is MAIN
. So, application starts, and A appears on the screen. User press the button on it, and new Activity
B appears on the screen.
So, there's now 2 activities in my "back stack": A and B.
Now I press "Home" key, and then click on my app's icon on launcher: Activity
B appears on the screen (not A), as far as it is top activity in my task.
Now question: how can i make Intent
to similarly open the currently top Activity
of my task?
I need it to use in Notification
: when user clicks on my Notification
, top Activity
of this task should appear on the screen, not a specified one.
I tried many Intent flags, such as SINGLE_TOP
and others, but i still can't get what i need.
Does anyone know the solution?