question: call this from your startactivityforresult overload . this is required to catch the case where plugins use activity.startactivityforresult + cordovainterface.setactivityresultcallback rather than cordovainterface.startactivityforresult . concode_field_sep Activity activity concode_elem_sep CordovaPlugin permissionResultCallback concode_elem_sep int resultCode concode_elem_sep int activityResultRequestCode concode_elem_sep Intent intent concode_elem_sep Bundle savedPluginState concode_elem_sep String TAG concode_elem_sep PluginManager pluginManager concode_elem_sep CordovaPlugin activityResultCallback concode_elem_sep String initCallbackService concode_elem_sep ActivityResultHolder savedResult concode_elem_sep boolean activityWasDestroyed concode_elem_sep int requestCode concode_elem_sep ExecutorService threadPool concode_field_sep ExecutorService getThreadPool concode_elem_sep void restoreInstanceState concode_elem_sep void requestPermission concode_elem_sep void onCordovaInit concode_elem_sep Activity getActivity concode_elem_sep void setActivityResultCallback concode_elem_sep void requestPermissions concode_elem_sep void onRequestPermissionResult concode_elem_sep boolean onActivityResult concode_elem_sep void startActivityForResult concode_elem_sep boolean hasPermission concode_elem_sep Object onMessage concode_elem_sep void onSaveInstanceState
target: void function ( int arg0 ) { activityResultRequestCode = arg0 ; }