Android Spinner : Avoid onItemSelected calls during initialization

I created an Android application with a Spinner and a TextView. I want to display the selected item from the Spinner’s drop down list in the TextView. I implemented the Spinner in the onCreate method so when I’m running the program, it shows a value in the TextView (before selecting an item from the drop … Read more

How to keep onItemSelected from firing off on a newly instantiated Spinner?

I’ve thought of some less than elegant ways to solve this, but I know I must be missing something. My onItemSelected fires off immediately without any interaction with the user, and this is undesired behavior. I wish for the UI to wait until the user selects something before it does anything. I even tried setting … Read more