get selected item spinner code example
Example 1: spinner get selected index
spinner1.getSelectedItemPosition();
Example 2: how to collect the selected value from spinner
fields.getSelectedItem().toString()
//A one liner is all that is needed
//Change 'fields' to the variable name of the spinner you are dealing with.