I have two activities with “navigation menu” which has items for launching Activity1 and Activity2.
For example we starts Activity2 from Activity1 and then we want open Activity1 by tap on “navigation menu”, but when we do this we get new instance of Activity1 instead of open еxisting instance.
How can i open instance of Activity1 if it already exists and create new instance if not?
I have two activities with navigation menu which has items for launching Activity1 and
Share
Add
FLAG_ACTIVITY_REORDER_TO_FRONTto yourIntentyou use withstartActivity().