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
In my case none of the answers worked, so I queued the setSelection through a Handler
new Handler().postDelayed(new Runnable() {
public void run() {
mSpinner.setSelection(1);
}
}, 100);
Doing this could cause problems when running on slow devices, but I'm working for a specific device so it's ok to use this hack