I have a basic form layout that relies upon a spinner - I originally had a button layout, but that became unweildy as more options were added. The UI is implemented just fine, reads in the options to populate the spinner, adds in the drop list functionality.

It looks great ... but I am a little confused about the callback implementation for a listener that will tell me WHAT the user has selected. I could just wait until the user clicks the "Next>" button I implemented, but the intent of the spinner is to dynamically change the UI based on the user feedback.

Intuitively, I feel it should be OnItemClickListener, but according to the docs, "A spinner does not support item click events". I also considered using "checkSelectionChanged()" but that is not something I can implement as part of a listener, and would be fine if I was just reading an opion on a "Next>" button click. So, currently I am dead in the water.

Can anyone share a code stub that will allow me to read the item selected in the Spinner?

I was trying to do something like this earlier, but it was not working.

Why? Because in refactoring my code I had duplicated my declaration of the Spinner inside a method - so it was local to the method. This had the effect that when I tried to manipulate the spiiner outside the method, I was not working with the correctly initialised object.

I now have another error, but I suspect that your solution was what I needed - in conjunction with a clear head and a more critical look at my code.

====[Edit]====
OK - all fixed. That was exactly what was needed. It appears that my error was introduced during the refactoring.

Hope I can repay the favour with responses to other peoples questions in the forums.