[android-developers] Re: Detecting Button Clicks

2011-06-11 Thread c0dege3k
That would work if the buttons and the game logic were in the same class, but they aren't. I have a GameBoard class with all of the buttons set up in there, and then I have a Game class with the game logic. The game logic method looks a little like this: public void runGame() {

[android-developers] Re: Detecting Button Clicks

2011-06-11 Thread c0dege3k
Just figured it out- using a button clicked variable in the game class- *duh* On Jun 10, 8:33 am, Mark Murphy wrote: > Use setOnClickListener() or android:onClick. > > > > > > > > > > On Thu, Jun 9, 2011 at 1:18 PM, c0dege3k wrote: > > I'm writing a simple tic-tac-toe game, with regular buttons