title: How to keep onItemSelected from firing off on a newly instantiated Spinner?
body: <p>I've thought of some less than elegant ways to solve this, but I know I must be missing something.</p>
  
  <p>My <code>onItemSelected</code> 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.</p>
  
  <p>I even tried setting up the listener in the <code>onResume()</code>, hoping that would help, but it doesn't.</p>
  
  <p>How can I stop this from firing off before the user can touch the control?</p>
  
  <pre><code>public class CMSHome extends Activity { 
  
  private Spinner spinner;
  
  @Override
      public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      // Heres my spinner ///////////////////////////////////////////
      spinner = (Spinner) findViewById(R.id.spinner);
      ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(
              this, R.array.pm_list, android.R.layout.simple_spinner_item);
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      spinner.setAdapter(adapter);
      };
  
  public void onResume() {
      super.onResume();
      spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
  }
  
      public class MyOnItemSelectedListener implements OnItemSelectedListener {
  
      public void onItemSelected(AdapterView&lt;?&gt; parent,
          View view, int pos, long id) {
  
       Intent i = new Intent(CMSHome.this, ListProjects.class);
       i.putExtra("bEmpID", parent.getItemAtPosition(pos).toString());
          startActivity(i);
  
          Toast.makeText(parent.getContext(), "The pm is " +
            parent.getItemAtPosition(pos).toString(), Toast.LENGTH_LONG).show();
      }
  
      public void onNothingSelected(AdapterView parent) {
        // Do nothing.
      }
  }
  }
  </code></pre>