I have a short question:
How is it possible to convert a String, containing the Id of a Drawable, which is
String idString = \"R.drawable.bubblegum\"
if your idString is constant, i.e. it's doesn't change during runtime, follow DeeV's answer. If it changes, you can take a look at getIdentifier method.
idString