I have a drawable, which I want to compare to. I created a drawable object with it, and when I log it with toString, I get:
android.graphics.drawable.BitmapDrawable@41f95548
I am randomly selecting a button, and I want to keep randomly selecting until the image of the image button is not android.graphics.drawable.BitmapDrawable@41f95548
Now, I want to compare using this code:
do{
}while(buttonBackground = android.graphics.drawable.BitmapDrawable@41f95548 ));
buttonBackground is a drawable object.
This, for some reason, gets me an error:
How can I compare images with a code like this android.graphics.drawable.BitmapDrawable@41f95548
. What is this code called? Thanks