title: Multiple spinners and onItemSelected
body: <p>I have two spinners that trigger the onItemSelected event. The question is How can I know which one triggered such event ? So far I tried:</p>
  
  <pre><code> public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) 
  {
  
      Log.d("form","onitemselected");
      switch (view.getId()) {
      case R.id.region_spinner:
          Region r = (Region)sregions.getSelectedItem();
          Log.d("form","regionid:" + r.id);
          break;
      case R.id.state_spinner:
          Log.d("form","state id:");
          break;
      }
  </code></pre>
  
  <p>But only the first Log is displayed, so there's no match in the switch.</p>