I think you should still use the call startActivityForResult()
directly in fragment, no use getActivity().startActivityForResult()
.
I call the startActivityForResult()
in Fragment and implement the onActivityResult
in Fragment, the onActivityResult()
is called correctly.
you can not call startActivityForResult()
in activity, otherwise the onActivityResult()
in Fragment will not be called.