Reputation: 510
As it is shown in the image, the 2 IDs are not equal, according to logcat, however, the program goes inside IF clause anyway. What is the problem? Do I miss some property of button ids?
P.S. This part of code goes through the table of buttons and finds the coodinates of the clicked button, buttonId is the id of the clicked button. Thank you!
Upvotes: 1
Views: 80
Reputation: 838
Change
if(theId == buttonId);
to
if(theId == buttonId)
No semi-colon after if statements
Upvotes: 5