Wrong requestCode returned onActivityResult from another Activity

前端 未结 2 1060
Happy的楠姐
Happy的楠姐 2021-02-18 14:04

I have an Activity that calls another Activity, that calls some other Activities. I send to the last Activity to get a result

2条回答
  •  你的背包
    2021-02-18 14:51

    Just replace

    startActivityForResult(intent, Defines.FILTER_BY_CATALOGUE);
    

    with

    getActivity().startActivityForResult(intent, Defines.FILTER_BY_CATALOGUE);
    

    It will work for sure. :)

提交回复
热议问题