Skip to content

Instantly share code, notes, and snippets.

@Akshay-Rana-Gujjar
Created August 21, 2020 10:51
Show Gist options
  • Save Akshay-Rana-Gujjar/68939fb5a9dadea9cb30c8d3db8606da to your computer and use it in GitHub Desktop.
Save Akshay-Rana-Gujjar/68939fb5a9dadea9cb30c8d3db8606da to your computer and use it in GitHub Desktop.
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(resultCode ==RESULT_OK){
if (data != null) {
fileUri = data.getData();
imageView.setImageURI(fileUri);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment