I have set an image to an ImageView control in android:
ImageView
iv.setImageResource(R.drawable.image1);
I want to get this associated Drawab
You can get the drawable like
Drawable myDrawable = iv.getDrawable();
You can compare it with a drawable resource like
if(iv.getDrawable()==getResources().getDrawable(R.drawable.image1)){ //do work here }