Skip to content

Instantly share code, notes, and snippets.

@mcatta
Created May 8, 2013 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcatta/5541372 to your computer and use it in GitHub Desktop.
Save mcatta/5541372 to your computer and use it in GitHub Desktop.
Android File system snippet
Environment.getExternalStorageDirectory(); // something like /sdcard/
// Set ImageView
ImageView imageView = new ImageView(this);
Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/path/to_image.jpg");
imageView.setImageBitmap(bitmap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment