How to select item in Spinner to open a New Activity
<p>I'm trying to select an item in Spinner and that item will open an activity when I click the send button. For example, Activity 1 and Activity 2. In my spinner, I have Item 1 and Item 2. When I choose Item 1, I want Activity 1 to be open. 
 I've tried some code but it doesn't working. 
 Here's my code.</p>

<p>Spinner in activity_main.xml</p>

<pre><code>&lt;Spinner
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/spinner"
        android:layout_alignBottom="@+id/button"
        android:layout_toRightOf="@+id/button"
        android:layout_toEndOf="@+id/button"
        android:entries="@array/punpColleges"
        android:spinnerMode="dropdown" /&gt;
</code></pre>

<p>In my MainActivity.java</p>

<pre><code>public class MainActivity extends ActionBarActivity {
    Spinner spin = (Spinner) findViewById(R.id.spinner);
    private static Button button_send;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        OnClickButtonListener();
    }
    public void OnClickButtonListener() {

        button_send = (Button) findViewById(R.id.button);
        button_send.setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Intent intent = new Intent();
                        if (spin.getSelectedItem().toString().equals("CCS")) {
                            startActivity(new Intent(MainActivity.this, ListActivity.class));
                        } else {
                            startActivity(new Intent(MainActivity.this, SecondTesting.class));
                        }
                    }
                }
        );

}
</code></pre>

<p>Strings are located in strings.xml</p>

<pre><code>&lt;string-array name="punpColleges"&gt;
        &lt;item&gt;CCS&lt;/item&gt;
        &lt;item&gt;CBE&lt;/item&gt;
    &lt;/string-array&gt;
</code></pre>

<p>I also added this in AndroidManifest.xml</p>

<pre><code>&lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity
            android:name=".ListActivity"
            android:label="@string/title_activity_list" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.ListActivity" /&gt;

                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
</code></pre>

<p>Thanks in advance for the help! </p>