onActivityResult is not being called in Fragment

后端 未结 30 3566
忘了有多久
忘了有多久 2020-11-21 04:28

The activity hosting this fragment has its onActivityResult called when the camera activity returns.

My fragment starts an activity for a result with th

30条回答
  •  礼貌的吻别
    2020-11-21 04:50

    In short,

    In fragment, declare Fragment fragment = this;

    after that use fragment.startActivityForResult.

    The result will return in activityResult.

提交回复
热议问题