ImageView myImageView; myImageView = mDialog.findViewById(R.id.image_id); String src = "imageFileName" int drawableId = this.getResources().getIdentifier(src, "drawable", context.getPackageName()) popupImageView.setImageResource(drawableId);