tags:

views:

17

answers:

1

As the title says, what is the method to access which item is displayed in an Android spinner, so I can have multiple spinners, then wait on a button click?

Thanks!

+3  A: 

You can use spinner.getSelectedItem() to get the currently selected spinner item: http://developer.android.com/reference/android/widget/AdapterView.html#getSelectedItem

Megha Joshi
Or `getSelectedItemId()`, `getSelectedItemPosition()`, and `getSelectedView()`. This works for every subclass of `AdapterView` (e.g., `ListView`).
CommonsWare
Thank you both.
Allen Gingrich