I've set a tag on an imageview to be "blank", so it looks like this in the xml file
android:tag="blank"
Now when I run this
((String) buttons[button-2].getTag() == "blank"
It returns false. I can't find why, any ideas? Any help greatly appreciated.
Use:
For
String
comparison you must useequals
,==
tests references.