In Android, I am trying to get the selected Spinner value with a listener.
What is the best way to get the spinner's value?
Spinner mySpinner = (Spinner) findViewById(R.id.your_spinner); String text = mySpinner.getSelectedItem().toString();
2.1m questions
2.1m answers
60 comments
57.0k users