How to disable onItemSelectedListener to be invoked when setting selected item by code
Just wondering how you handle the following problem: a result is calculated depending on two spinners' selected items. To handle the UI things, i.e. a user picks a new item in one of the spinners, I install a listener using setOnItemSelectedListener for the spinner in my onCreate() method of the activity. Now: that works, of course, fine. The listener's work is to trigger a new calculation of the result. The problem: because I intercept onPause() onResume() to save/restore the last state, I got a method that sets these two spinners' selected item programmatically like in here: startSpinner