Skip to content

Instantly share code, notes, and snippets.

@Pierry
Created February 20, 2015 17:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pierry/efe85c7a3ca3ef47cd9d to your computer and use it in GitHub Desktop.
Save Pierry/efe85c7a3ca3ef47cd9d to your computer and use it in GitHub Desktop.
image-load-from-path-android
// 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