Button connecting to ContactManager
<p>If I want to connect to this Activity in Android:</p>

<pre><code>package com.clayton.Calendar

{    public static final String TAG = "ContactManager";



/**
 * Called when the activity is first created. Responsible for initializing the UI.
 */

@Override
public void onCreate(Bundle savedInstanceState)
{
    Log.v(TAG, "Activity State: onCreate()");
    super.onCreate(savedInstanceState);
    setContentView(R.layout.contact_manager);
</code></pre>

<p>What would what would the button and Android Manifest look like? I have this for the button:</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.friends);



    SettingButtons();

     clas.setOnClickListener(this);
}

public void onClick(View v) {
    // TODO Auto-generated method stub
    switch(v.getId()){
    case R.id.TOFRIENDS:
        // TODO Auto-generated method stub
        startActivity(new Intent("com.clayton.calendar.ContactManager"));
        break;
    }
}

private void SettingButtons() {
    // TODO Auto-generated method stub
    clas = (Button) findViewById(R.id.TOFRIENDS);
}
</code></pre>

<p>`</p>

<p>And this for the manifest, but it is not working? I am getting an error when I press the button.</p>

<pre><code>    &lt;activity 
        android:name=".ContactManager" 
        android:label="@string/app_name"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.clayton.calendar.ContactManager" /&gt;
            &lt;category android:name="android.intent.category.Default" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
</code></pre>
