Re: [android-developers] Obtaining the selected index of a spinner

2010-03-27 Thread ~ TreKing
http://developer.android.com/reference/android/widget/AdapterView.html#getSelectedItemPosition() On Mar 26, 2010 6:10 PM, "oddgeir.kv...@gmail.com" wrote: I want to obtain the index of the selected item in a spinner. I am aware of the method getSelectedItem() which returns the item selected (wh

[android-developers] Obtaining the selected index of a spinner

2010-03-26 Thread oddgeir.kv...@gmail.com
I want to obtain the index of the selected item in a spinner. I am aware of the method getSelectedItem() which returns the item selected (which might be a String). But i want the index of the selected item. Something equivalent to the setSelection(index) to set the selected item. Of course I can