Reputation: 41
I have three Activities A, B,C Now I am Moving Activities like A -> B->C Now I want to show Activity A form C. without creating new Activity. That means I have to show old "A". Can u please tell me how to achieve it.
Upvotes: 3
Views: 1483
Reputation: 6715
If you just want to bring particular activity on top, then do this
yourIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
If you want to close all your running activities except a particular activity, do this
yourIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Upvotes: 1
Reputation: 75629
Use FLAG_ACTIVITY_REORDER_TO_FRONT
. See linked docs for details.
Upvotes: 1