Spinner obtient l'index sélectionné
spinner1.getSelectedItemPosition();
Jesus
spinner1.getSelectedItemPosition();
fields.getSelectedItem().toString()
//A one liner is all that is needed
//Change 'fields' to the variable name of the spinner you are dealing with.
Spinner spinner = (Spinner)findViewById(R.id.spinner);
String text = spinner.getSelectedItem().toString();