title: Android Spinner - onItemSelected / setOnItemSelectedListener not triggering
body: <p>This is driving me nuts since it's something I've done before but can't figure out why it isn't working now...</p>
  
  <p>I've got a menu button, implemented in the usual way via a <code>menu.xml</code> file and the <code>onOptionsItemSelected</code> method with a switch in it, that creates and displays a spinner.</p>
  
  <p>I've added the <code>setOnItemSelectedListener</code>, but it never seems to trigger. The spinner appears, I pick an option or back out, neither <code>onItemSelected</code> or <code>onNothingSelected</code> are called.</p>
  
  <p>Here is all the code between the "case" and "return true" of the menu-button-handling switch statement. (<code>topThis</code> is a variable referring to the context of the activity - works fine for all other toasts in the app)</p>
  
  <pre><code>String[] widgetModes = {"Mode 1", "Mode2"};
  ArrayAdapter&lt;String&gt; widgetModeAdapter = new ArrayAdapter&lt;String&gt; (this, android.R.layout.simple_spinner_item, widgetModes);
  widgetModeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  
  Spinner widgetModeSpinner = new Spinner(this);
  widgetModeSpinner.setAdapter(widgetModeAdapter);
  widgetModeSpinner.setPrompt("Choose Widget Mode");
  
  widgetModeSpinner.setOnItemSelectedListener(new OnItemSelectedListener() 
  {
      @Override
      public void onItemSelected(AdapterView&lt;?&gt; parentView, View selectedItemView, int position, long id) 
      {
          Toast.makeText(topThis, "derp", Toast.LENGTH_LONG).show();
      }
  
      @Override
      public void onNothingSelected(AdapterView&lt;?&gt; parentView) 
      {
          Toast.makeText(topThis, "herf", Toast.LENGTH_LONG).show();
      }
  });
  
  widgetModeSpinner.performClick();
  </code></pre>
  
  <p>Any ideas? I vaguely suspect that the fact I'm creating the <code>Spinner</code> programmatically is the problem...</p>