The default behavior for an Activity
(as seen in the FragmentActivity source for onActivityResult) is to pass onActivityResult
to all attached Fragments' onActivityResult
in addition to the Activity's onActivityResult
. Therefore, just handle the onActivityResult
in your Fragment.
Note: if your Activity does handle onActivityResult
, ensure that it calls super.onActivityResult
or the Fragment's onActivityResult
call will not occur.