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 seem to be a detect-click > method built-in, so I was wondering if there was an easy way to solve > this problem. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en