开发者

Android Activity Group Implementation

开发者 https://www.devze.com 2023-01-21 06:26 出处:网络
i have multiple activities in my activityGroup under tabactvity. I want to start the child actvity for result.

i have multiple activities in my activityGroup under tabactvity.

  1. I want to start the child actvity for result.

    Intent i = new Intent(this, addstocks.class);

    View view = stocksgroup.group.getLocalActivityManager()

    .startActivity开发者_开发技巧("show_city", i

    .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))

    .getDecorView();

    // Again, replace the view

    stocksgroup.group.replaceView(view);

this code basically taking me to the next activity. here i want to implement the actvity for result. hw can i do that?


It ts very late but just for reference a demo can be seen here: onActivityResult is not been invoked after the child activity calls finish()

0

精彩评论

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