Q:

Get image from image view in android

I have two images as drawables, one for checked, and one for unchecked. 
When the user clicks on a button, I want to swap these views in the ImageView.   How can I accomplish this? 

A:

You can use the setImageResource method of the ImageView in conjunction with a class variable that holds the resource id of the current image:
ImageView iv = (ImageView)findViewById( R.id.my_image_view );

switch( mCurrentImage )
{
    case R.drawable.image1:
        iv.setImageResource( R.drawable.image2 );
        mCurrentImage = R.drawable.image2;
    break;
    case R.drawable.image2:
        iv.setImageResource( R.drawable.image1 );
        mCurrentImage = R.drawable.image1;
    default:
}

