Question: I need to get an item's position in spinner knowing it's ID. I've tried to do it with Spinner and SpinnerAdapter classes but there are no corresponding methods there.

Thanks, 

Aleksander

Answer: 
Here's how I did it last night for the first time:

```
Spinner mySpn = (Spinner) findViewById(R.id.my_spinner);
String spnItem = (String) mySpn.getItemAtPosition(mySpn.getSelectedItemPosition());

```
you can query the selected position by `Spinner.getSelectedItemPosition()`

or alternatively you will get the selected item position if you override the method `onItemSelected()`