Fragment的onActivityResult回调

1
fragment.getContext().startActivityForResult(intent, requestCode);

则回调Fragment的onActivityResult

1
fragment.getActivity().startActivityForResult(intent, requestCode);

则回调Activity的onActivityResult

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :