I need to show an image by using the file name only, not from the resource id.
ImageView imgView = new ImageView(this); imgView.setBackgroundResource(R.drawa
private void showImage(ImageView img, String absolutePath) { BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 8; Bitmap bitmapPicture = BitmapFactory.decodeFile(absolutePath); img.setImageBitmap(bitmapPicture); }