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
I think you can use this
Bitmap bmImg = BitmapFactory.decodeFile("path of your img1"); imageView.setImageBitmap(bmImg);