title: Android: Open Spinner from Button
body: <p>In an Android application, is it possible to open the spinner popup from a button click instead of pressing the actual spinner?</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>Button btnChange = (Button)findViewById(R.id.btnChange);
              btnChange.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View v) {
                       Spinner mySpinner = (Spinner) findViewById(R.id.sSpinner);
                       mySpinner.showContextMenu();
                    }
                  });
  </code></pre>