I\'m having some problem with setSelection on a Spinner. I set the value to be pre-selected when the spinner is shown in code, but it has no effect and the first alternative
use this
sp2.setAdapter(sp2.getAdapter()); sp2.getAdapter().notifyDataSetChanged(); sp2.setSelection(0, false);