I have some Images in my project. The name of the image is stored in a String and I would like to setImageResource(R.drawable.\".....\"); with the string of the image name but t
Use
getResources().getIdentifier("NAME_OF_IMAGE", "drawable", context.getPackageName())