The activity hosting this fragment has its onActivityResult
called when the camera activity returns.
My fragment starts an activity for a result with th
Solution 1:
Call startActivityForResult(intent, REQUEST_CODE);
instead of getActivity().startActivityForResult(intent, REQUEST_CODE);
.
Solution 2:
When startActivityForResult(intent, REQUEST_CODE);
is called the activity's onActivityResult(requestCode,resultcode,intent)
is invoked, and then you can call fragments onActivityResult()
from here, passing the requestCode, resultCode and intent
.