spinner hoe to get selected item index code example Example: spinner get selected index spinner1.getSelectedItemPosition();