fields.getSelectedItem().toString() //A one liner is all that is needed //Change 'fields' to the variable name of the spinner you are dealing with.