title: two spinner in one activity
body: <p>i have 2 spinner .</p>
  
  <p>this is my activity</p>
  
  <pre><code>package com.example.belajarcombobox;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.Spinner;
  import android.widget.TextView;
  import android.widget.Toast;
  
  
  public class CreateComboBox extends Activity implements AdapterView.OnItemSelectedListener {
  
      TextView selection;
      TextView selection2;
      String[] countries = {"Amerika","Argentina","Brazil"};
  
      String[] city = {"London","Paris","Buenos Aires"};
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          selection = (TextView) findViewById(R.id.selection);
          Spinner spin = (Spinner) findViewById(R.id.spinner);
          ArrayAdapter&lt;String&gt; aa = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_spinner_item, countries);
          aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spin.setAdapter(aa);
          spin.setOnItemSelectedListener(this);
  
          selection2 = (TextView) findViewById(R.id.selection2);
          Spinner spin2 = (Spinner) findViewById(R.id.spinner2);
          ArrayAdapter&lt;String&gt; bb = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_spinner_item, city);
          bb.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spin.setAdapter(bb);
          spin2.setOnItemSelectedListener(this);
      }
  
      public void onItemSelected(AdapterView&lt;?&gt; parent, View v, int position, long id ){
          Spinner spin = (Spinner)parent;
          Spinner spin2 = (Spinner)parent;
          if(spin.getId() == R.id.spinner)
          {
              Toast.makeText(this, "Your choose :" + countries[position],Toast.LENGTH_SHORT).show();                 
          }
          if(spin2.getId() == R.id.spinner2)
          {
              Toast.makeText(this, "Your choose :" + city[position],Toast.LENGTH_SHORT).show();       
          }
  
      }
  
      public void onNothingSelected(AdapterView&lt;?&gt; parent){
          Toast.makeText(this, "Choose Countries :", Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>
  
  <p>when i run this activity, the first spinner value is city and the second spinner value is empty. </p>
  
  <p>How do I run 2 spinner in the same activity?
  First spinner value is countries and second spinner value is city.</p>
  
  <p>BR</p>
  
  <p>Alex</p>