I am writing an application which uses a spinner to select one of five items. I was unable to find an event which is triggered by the selection of an item on a spinner. I was able to work around this lack by adding a button to my UI and triggering my desired activity by the pressing of the button. I don't like "select the item from the spinner and press the button" because it seems clumsy -- how do I get rid of the need for the button and have the simple act of item selection on the spinner trigger an event?
An excellent demonstration of the effect for which I am asking would be to add persistence to the "hello spinner" application. Make a selection, rotate the phone, have the same item be selected, exit the application, re-enter the application, have the same item be selected, that'd be exactly what I want.
Any pointers would be appreciated. I can post my existing code if that helps.