Array spinner selection
<pre><code>int nvalue=2;
Spinner[] spinner = new Spinner[nvalue];
spinner[].setonitem?
</code></pre>

<p>I have the array of spinner and I want to use <code>setOnItemSelectedListener</code>  for every spinner.How can I use <code>setOnItemSelectedListener</code> for array spinner?</p>

<pre><code>spinner[0].setOnItemSelectedListener(new OnItemSelectedListener() 
    {
        public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                int arg2, long arg3) 
        {
        }
        public void onNothingSelected(AdapterView&lt;?&gt; arg0) 
        {
            // TODO Auto-generated method stub              
        }

    }); 
</code></pre>

<p>will shows error</p>
