title: android spinner performClick onItemSelected
body: <p>I have a little problem with a <code>spinner</code>.</p>
  
  <p>I create a <code>Spinner</code> the user click a Button. The <code>Spinner</code> is shown as it should be, but when <code>onItemSelected</code> should be called nothing happens.</p>
  
  <p>Here is the code</p>
  
  <pre><code>public void setUpSpinner(){
      spinner = new Spinner(this);
      CustomArrayAdapter&lt;String&gt; adapter = new CustomArrayAdapter&lt;String&gt;(this,     android.R.layout.simple_spinner_item, getAsStrings());
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      spinner.setAdapter(adapter);
      spinner.setOnItemSelectedListener(this);
  }
  
  public void onClick(View view) {       
      spinner.performClick();
  }
  
  public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {        
      String getName = (String) spinner.getSelectedItem();
      getListFromName(getName);
  }
  </code></pre>
  
  <p>Anyone knows what is wrong here?</p>
  
  <p>Thank you guys.</p>