Created
February 20, 2015 17:05
-
-
Save Pierry/efe85c7a3ca3ef47cd9d to your computer and use it in GitHub Desktop.
image-load-from-path-android
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
// get download directory | |
File imgFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); | |
if(imgFile.exists()) { | |
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getPath() + "/ovo.jpg"); | |
ivImagem.setImageBitmap(myBitmap); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment