this may be a simple question but i was wondering, i have an application that has two spinners and a textview which displays a boolean. the two spinners have numbers between 1 and 10 and i want the boolean to display true when ever the numbers from the two spinners equal to 12. i have all the code to do this and to check are the numbers in the spinners = 12 but i dont know where to put the code to check are the numbers = 12 when ever one of the spinners are changed
so long story short, is there a onClick command i can use to call this code when ever someone clicks on a spinner and changes the number in the spinner?
Thanks
You have to use an on item selected listener: