You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActivityResultLauncher<Intent> launcher_ktp =
registerForActivityResult(newActivityResultContracts.StartActivityForResult(), (ActivityResultresult) -> {
if (result.getResultCode() == RESULT_OK) {
Uriuri = result.getData().getData();
uri_ktp = uri;
// Use the uri to load the imageimg_ktp .setImageURI(null);
img_ktp .setImageURI(uri);
} elseif (result.getResultCode() == ImagePicker.RESULT_ERROR) {
ImagePicker.Companion.getError(result.getData()) ;
}
});
it's can be run without any problem in activity. but we need load pick and load image to imageview in fragment and can't use with this methode. how to solve this problem
The text was updated successfully, but these errors were encountered:
hello i am implement this code to pick image from camera or gallery
it's can be run without any problem in activity. but we need load pick and load image to imageview in fragment and can't use with this methode. how to solve this problem
The text was updated successfully, but these errors were encountered: