How to check which image is set to the activity's view?
<p>How can I check what image is on my activity (programmatically)? I want to make a condition: if I have lets say img1, then I want to show a Toast "img1", and if I have img2, then I want to show a Toast "img2". I know there is something like <code>setImageDrawable(getResources().getDrawable(R.drawable.img2)</code>, which does setting an image. </p>
