How do I get the resource id of an image if I know its name (in Android)?
This question is related to
android
android-image
android-resources
With something like this:
String mDrawableName = "myappicon";
int resID = getResources().getIdentifier(mDrawableName , "drawable", getPackageName());