title: Android change value of Spinner
body: <p>I created 2 <code>Spinner</code>s and I to fill them with an array of numbers. What I want is that the  user chooses the number they want on the first one, and then I save it to a variable that I use to populate the dropdown list of the second one with values that start with that number. How can I do this?
  How can I change the text in the second spinner to start with the number chosen.</p>
  
  <p>I have this, I store the item of the <code>Spinner</code> on the variable <code>x</code>, and I want a second <code>Spinner</code> to start with that variable.</p>
  
  <pre><code>mySpinner
                  .setAdapter(new ArrayAdapter&lt;String&gt;(NewGuiaActivity.this,
                          android.R.layout.simple_spinner_dropdown_item,
                          establist));
  
          // Spinner on item click listener
          mySpinner
                  .setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
  
                      @Override
                      public void onItemSelected(AdapterView&lt;?&gt; arg0,
                              View arg1, int position, long arg3) {
                          // TODO Auto-generated method stub
                          // Locate the textviews in activity_main.xml
  
  
                          x = estab.get(position).getID();
  
                          Toast.makeText(getApplicationContext(), x,
                                     Toast.LENGTH_LONG).show();
  
                      }
  
                      @Override
                      public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
                          // TODO Auto-generated method stub
                      }
                  });
  </code></pre>