I have set an image to an ImageView control in android:
ImageView
iv.setImageResource(R.drawable.image1);
I want to get this associated Drawab
This is an easy approach if you can use the view's id member variable: just store the R.drawable id using v.setId(). Then get it back with v.getId().