I have a kind of form with 3 Spinners. The content of 2 Spinners (minorSpinner) depends on the selection of the first one (mainSpinner). To be more precise, I set the content of those 2 minorSpinner in the mainSpinner's onItemSelected listener.
The form can be saved and load back again.
The problem is: When I am trying to load the form, first I set the mainSpinner and then minerSpinners.
Like:
mainSpinner.setSelection(value);
minorSpinner1.setSelection(value1);
minorSpinner2.setSelection(value2);
Unfortunatelly the minorSpinners are not ready in time. Maybe because their values are set in the UI Thread?
Question:
how to wait until they are ready?
What I tried:
runOnUIThread(){
mainSpinner.setSelection(value);
minorSpinner1.setSelection(value1);
minorSpinner2.setSelection(value2);
}
but ti does not work:(
Any idea?