Android ImageView set image from sdcard

Android set ImageView image from sdcard.

ImageView imageView = (ImageView)findViewById(R.id.imageView2);
File imageFile = new  File("/sdcard/a.jpg");
imageView.setImageBitmap(BitmapFactory.decodeFile(imageFile.getAbsolutePath()));



Comments