call contacts, choose contact to send sms to then send sms
<p>I'm looking to call the users contacts list. They will then choose a contact to send an sms to. I'm having a hard time understanding how to save the contact for use when sending the sms. Any help would be appreciated. Here is my code so far below.</p>

<pre><code>package com.example.practiceapp;

import android.os.Bundle;
import android.provider.ContactsContract;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class Dollar extends Activity {

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

    //@Override
    //public boolean onCreateOptionsMenu(Menu menu) {
        //getMenuInflater().inflate(R.menu.activity_dollar, menu);
        //return true;
    //}

    public void contacts(View view) {
        Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
        int PICK_CONTACT=0;
        startActivityForResult(intent, PICK_CONTACT);

}


}
</code></pre>
