Re: [android-developers] Detecting Button Clicks

2011-06-10 Thread Mark Murphy
Use setOnClickListener() or android:onClick. On Thu, Jun 9, 2011 at 1:18 PM, c0dege3k c0deg...@gmail.com wrote: I'm writing a simple tic-tac-toe game, with regular buttons making up the grid. What I want to happen is for when one button is clicked, for the turn boolean to switch. There doesn't

[android-developers] Detecting Button Clicks

2011-06-09 Thread c0dege3k
I'm writing a simple tic-tac-toe game, with regular buttons making up the grid. What I want to happen is for when one button is clicked, for the turn boolean to switch. There doesn't seem to be a detect-click method built-in, so I was wondering if there was an easy way to solve this problem. --