The activity hosting this fragment has its onActivityResult called when the camera activity returns.
My fragment starts an activity for a result with th
Another use case not already described in other answers:
onActivityResult() declared in fragment is not invoked when using exception.startResolutionForResult():
if (exception is ResolvableApiException) {
exception.startResolutionForResult(activity!!, MY_REQUEST_CODE)
}
In this case replace exception.startResolutionForResult() with fragment's startIntentSenderForResult():
if (exception is ResolvableApiException) {
startIntentSenderForResult(exception.resolution.intentSender, MY_REQUEST_CODE, null, 0, 0, 0, null)
}