Related questions
String imageName = getImageNameFromDB // "gerb" int id = getResources().getIdentifier(imageName, "drawable", getPackageName());
Find more questions by tags SQLJavaAndroidSQLite