hooking a spinner to onClick Listener, to open new pages
<p>Still an Android newbie , but hopefully someone can point me in the right direction on this issue.
What I am trying to achieve is.
I have 2 radio button, when one is clicked it changes the array in the spinner to  Canada, when I click the other array appears. This works fine! 
But I am struggling to hook up an onClickListener (from the spinner onItemSelect) to the submit button . From which I want to issue an intent  to open a new page according to the province or state chosen.  As well is some could show me a switch statement for that as well it would be greatly appreciated. Thanks in advance.</p>

<pre><code>String xml

        &lt;string name="prov_picker"&gt;Select a Province&lt;/string&gt;
    &lt;string-array name="prov_array"&gt;
        &lt;item&gt;-- Select Province --&lt;/item&gt;
        &lt;item&gt;British Columbia&lt;/item&gt;
        &lt;item&gt;Alberta&lt;/item&gt;
        &lt;item&gt;Saskatchewan&lt;/item&gt;
        &lt;item&gt;Manitoba&lt;/item&gt;
        &lt;item&gt;Ontario&lt;/item&gt;
        &lt;item&gt;Quebec&lt;/item&gt;
        &lt;item&gt;New Brunswick&lt;/item&gt;
        &lt;item&gt;Nova Scotia&lt;/item&gt;
        &lt;item&gt;Newfoundland&lt;/item&gt;
    &lt;/string-array&gt;
     &lt;string-array name="prov1_array"&gt;
        &lt;item&gt;-- Select State --&lt;/item&gt;
        &lt;item&gt;Washington&lt;/item&gt;
        &lt;item&gt;Florida&lt;/item&gt;
        &lt;item&gt;California&lt;/item&gt;
        &lt;item&gt;New York&lt;/item&gt;
        &lt;item&gt;Colorado&lt;/item&gt;
    &lt;/string-array&gt;
    &lt;string name="radio1"&gt;Canadian&lt;/string&gt;    
    &lt;string name="radio2"&gt;US&lt;/string&gt; 

xml

import android.app.Activity;
import android.os.Bundle;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.RadioGroup;
import android.widget.SpinnerAdapter;
import android.widget.Toast;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.Spinner;
import android.view.View;

public class CanProvselect extends Activity implements OnCheckedChangeListener {
    /** Called when the activity is first created. */
    private RadioGroup RadioProvs;
    private Button btn1;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.canprovselect);

        btn1 = (Button)findViewById(R.id.button1); 
        RadioProvs = (RadioGroup) findViewById(R.id.rgProvs);
        RadioProvs.setOnCheckedChangeListener(this);
    }
    public void onCheckedChanged(RadioGroup group, int checkedId) {
        ArrayAdapter&lt;CharSequence&gt; adapter = null;
        final Spinner spinner = (Spinner) findViewById(R.id.spinner);

        switch (checkedId) {
        case R.id.radio_1 :
            adapter = ArrayAdapter.createFromResource(
                    this, R.array.prov_array, android.R.layout.simple_spinner_item);     
            adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);     
            spinner.setAdapter(adapter);
            spinner.setOnItemSelectedListener(new OnItemSelected(
                    ));
            break;
        case R.id.radio_2 :
            adapter = ArrayAdapter.createFromResource(
                    this, R.array.prov1_array, android.R.layout.simple_spinner_item);     
            adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);     
            spinner.setAdapter(adapter);
            spinner.setOnItemSelectedListener(new OnItemSelected(
                    ));
            break;

        }
        btn1.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v)  {
            String selected = (String) spinner.getSelectedItem();
        Intent myIntent = new Intent (spinner.getSelectedItem(), ProvBC.class);
        startActivityForResult(myIntent, 0);    
</code></pre>

<p>}</p>

<pre><code>        });
    }
}



onItemSelected

    import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.Toast;

public class OnItemSelected implements OnItemSelectedListener {
    private boolean isFirst = true;

    public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
            long arg3) {

        if (isFirst) { 
            isFirst = false;
            } else {
        Toast.makeText(arg0.getContext(), "The country is"+arg0.getItemAtPosition(arg2).toString(), 
                Toast.LENGTH_SHORT).show();
            }
    }

    public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
        // TODO Auto-generated method stub

    }

}
</code></pre>
