@SuppressWarnings("deprecation")
    public static Intent newPickContactIntent(String scope) {
        Intent intent;
        if (isContacts2ApiSupported()) {
            intent = new Intent(Intent.ACTION_PICK, Uri.parse("content://com.android.contacts/contacts"));
        } else {
            intent = new Intent(Intent.ACTION_PICK, Contacts.People.CONTENT_URI);
        }

        if (!TextUtils.isEmpty(scope)) {
            intent.setType(scope);
        }

        return intent;
    }
@ SuppressWarnings ( "deprecation" ) public static Intent newPickContactIntent ( String scope ) { Intent intent ; if ( isContacts2ApiSupported ( ) ) { intent = new Intent ( Intent . ACTION_PICK , Uri . parse ( "content://com.android.contacts/contacts" ) ) ; } else { intent = new Intent ( Intent . ACTION_PICK , Contacts . People . CONTENT_URI ) ; } if ( ! TextUtils . isEmpty ( scope ) ) { intent . setType ( scope ) ; } return intent ; }
Pick contact from phone book
<p/>
Examples:
<p/>
<code><pre>
// Select only from users with emails
IntentUtils.pickContact(ContactsContract.CommonDataKinds.Email.CONTENT_TYPE);
<p/>
// Select only from users with phone numbers on pre Eclair devices
IntentUtils.pickContact(Contacts.Phones.CONTENT_TYPE);
<p/>
// Select only from users with phone numbers on devices with Eclair and higher
IntentUtils.pickContact(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
</pre></code>

@param scope You can restrict selection by passing required content type.