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.
Use below code instead of your code.