BekaBot
BekaBot

Reputation: 510

checking IDs of buttons

enter image description here

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

Answers (1)

3kings
3kings

Reputation: 838

Change

if(theId == buttonId);

to

if(theId == buttonId)

No semi-colon after if statements

Upvotes: 5

Related Questions