onItemSelected property of spinner in android
<pre><code>Spinner spin1 = (Spinner) findViewById(R.id.spinner1);
spin1.setOnItemSelectedListener(this);
spin2 = (Spinner) findViewById(R.id.spinner2);
spin2.setOnItemSelectedListener(this);
ArrayAdapter&lt;String&gt; choice1 = new ArrayAdapter&lt;String&gt;(this,
            android.R.layout.simple_spinner_item, data1);
    choice1
            .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    choice2 = new ArrayAdapter&lt;String&gt;(this,
            android.R.layout.simple_spinner_item, data2);
    choice2
            .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
</code></pre>

<p>In this code i am creating two drop downs and now my requirement is when i select the item from first combo the data in the second combo must be changed according to the selected item of first combo.</p>

<p>now in onItemSelected property how to code specially for first dropdown?</p>
