Created
January 27, 2017 18:40
-
-
Save sjthn/95da65ecbf41a428e3e11f095282d17a to your computer and use it in GitHub Desktop.
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
if (type.equals("image/png")){ | |
Uri fileStream = intentReader.getStream(); | |
Bitmap bitmap = null; | |
try { | |
InputStream inputStream = getContentResolver() | |
.openInputStream(fileStream); | |
bitmap = BitmapFactory.decodeStream(inputStream); | |
} catch (FileNotFoundException e) { | |
e.printStackTrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment