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());

```
well if u use this u can get the position no of the item then u can match with ur array of values

```
public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
system.out.println(arg2);
}

```

here arg2 is the index of the selected items position , rest i hope u can manage