Created
April 26, 2021 12:43
-
-
Save oluwabajio/61955e20a8cb1aba190a2bc78fdac0aa to your computer and use it in GitHub Desktop.
Bitmap from uri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Bitmap bitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), clipData.getItemAt(i).getUri()); | |
binding.imgLogo.setImageBitmap(bitmap); | |
} catch (IOException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment