开发者

Finishing Child Activity from another child activity in android

开发者 https://www.devze.com 2023-01-16 07:37 出处:网络
I have a parent activity (as ACTIVITY GROUP) and some child activity of this parent activity (as ACTIVITY).

I have a parent activity (as ACTIVITY GROUP) and some child activity of this parent activity (as ACTIVITY). I am just calling child1 now i want to move from child1 to child2 and just want to finish() child1. B开发者_StackOverflow社区ut when i am calling finish() it is also finishing the parent activity.

Plz send me a solution for it.


When you start child1 from parent, use startActivityForResult. Then when you finish child1, onActivityResult will be called in parent. From there, you can start child2.

0

精彩评论

暂无评论...
验证码 换一张
取 消