We have come across this issue many times during programming to get a selected item in your combobox.
ANDROID has built in functions to get the selected item from a spinner.
Take a look at the snippet.
Here my_spinner id the spinner variable and using getSelectedItem() which will return an object and by using toString() I am converting it to human readable string…
my_spinner.getSelectedItem().toString();
Please leave your valuable comments…..
simply superb. Thank you soooooo much.
bangke
Pingback: Customizing a spinner in android.
Pingback: Custom Spinner in Android Redone using BaseAdapter..