With something like this:
String mDrawableName = "myappicon"; int resID = getResources().getIdentifier(mDrawableName , "drawable", getPackageName());
2.1m questions
2.1m answers
60 comments
57.0k users