I have set an image to an ImageView control in android:
ImageView
iv.setImageResource(R.drawable.image1);
I want to get this associated Drawab
getResources().getDrawable() is now deprecated, just use getDrawable(R.id.myImage);