I am trying to launch camera in fragment but onActivityResult in fragment doesn\'t resolve RESULT_OK. What should i do?
I am launching camera using:
publ
In fragment we must use getActivity() method as prefix with RESULT_OK.
getActivity()
RESULT_OK
In your case it will be:-
if (requestCode == CAMERA_REQUEST_CODE && resultCode == getActivity().RESULT_OK)