How to get image from sdcard in android?
问题 i want create simple app in which i want get the image from sdcard but can`t success. my code is below File myFile = new File("/sdcard/photo.jpg"); ImageView jpgView = (ImageView)findViewById(R.id.imageView); BitmapDrawable d = new BitmapDrawable(getResources(), myFile.getAbsolutePath()); jpgView.setImageDrawable(d); but can`t get the image. 回答1: Use below code instead of your code. File f = new File("/mnt/sdcard/photo.jpg"); ImageView mImgView1 = (ImageView)findViewById(R.id.imageView);