devbible
ImageView iv = (ImageView)R.id.findViewById(R.id.myimage); int resId = context.getResources().getIdentifier( "name", "drawable", context.getPackageName() ); iv.setImageResource(resId);