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.
Use FLAG_ACTIVITY_REORDER_TO_FRONT
. See linked docs for details.
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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.