how to check if an ImageView is attcahed with image in android
<p>I am setting an image to ImageView in android code not in xml, but could not make out how to check whether that image has been set in or not in java.</p>

<p>Tried with <code>imageViewOne.getVisibility() == 0</code> 
but it is not working</p>

<p>If image has been set to ImageView then I am attaching that image for sending mail.</p>
