I have a list of entries and some bitmap files in the res/drawable-mdpi directory. I\'m trying to load the image corresponding to the string value selected from the list by
ImageView img = (ImageView) findViewById(R.id.{ImageView id}); img.setImageResource(getResources().getIdentifier("ImageName","drawable",getPackageName()));