The activity hosting this fragment has its onActivityResult
called when the camera activity returns.
My fragment starts an activity for a result with th
Inside your fragment, call
this.startActivityForResult(intent, REQUEST_CODE);
where this
is referring to the fragment. Otherwise do as @Clevester said:
Fragment fragment = this;
....
fragment.startActivityForResult(intent, REQUEST_CODE);
I also had to call
super.onActivityResult(requestCode, resultCode, data);
in the parent activity's onActivityResult
to make it work.
(I adapted this answer from @Clevester's answer.)