android spinner get selected item position code example Example: spinner get selected index spinner1.getSelectedItemPosition();