android-multipicker-library icon indicating copy to clipboard operation
android-multipicker-library copied to clipboard

onActivityResult is deprecated

Open mnk98 opened this issue 3 years ago • 0 comments

Using onActivityResult for permission response in a fragment, but now it's deprecated. Trying to using registerForActivityResult<Intent, ActivityResult>( ActivityResultContracts.StartActivityForResult() ) { result -> if (result.resultCode == Activity.RESULT_OK) { } }

but it does not give requestCode to identify Picker.PICK_IMAGE_DEVICE or Picker.PICK_IMAGE_CAMERA

if you could have added extra while doing startActivityForResult then it would help to identify them

mnk98 avatar Jul 14 '22 12:07 mnk98