i got this :
String input = "image_to_show"
and in my drawables:
image_to_show.png
i do:
imageView.setImageResource(R.drawable.image_to_show);
this works and refers to the object in drawables
can i get it to work using the string with the contexts being the same name as the drawables object