title: Spinner onItemSelected() executes inappropriately
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5124835/android-spinner-onitemselected-called-erroneously-without-user-action-on-openin">Android Spinner OnItemSelected Called Erroneously (without user action on opening spinner)</a>  </p>
  </blockquote>
  
  
  
  <p>Does anyone know how to prevent the onItemSelected() (OnItemSelectedListener interface) method from running when the layout is instantiated?  I need to know if there is a way to do this because I want to keep how I instantiate my layout separate from this listener. </p>
  
  <p>I have tried creating an if statement initially set to false around all the code inside of the overridden method, but there is no way of knowing when to set it to true because the overridden method runs after the onCreate(), onStart(), and onResume() methods everytime.</p>
  
  <p>I have not found any clear cut answers on this.  Any clear cut solutions would be greatly appreciated.</p>