How do I receive the value of the selected item in Android spinner? I want to get the selected text in the spinner when I press the Save button in the dialog, but I don't know how.
android android-spinner
Spinner spinner = (Spinner)findViewById(R.id.spinner);
String text = spinner.getSelectedItem().toString();
Do it like this.
© 2024 OneMinuteCode. All rights reserved.