Hello,

I wish to re-use the Contacts application in a way to enable the user to
pick a contact and return it to the parent activity (my application's
activity).

For achieving this, I want to inquire about the kind of Intent that will be
needed to launch the contacts application.

Intent i = new Intent(Intent.ACTION_GET_CONTENT, ???);
startActivityForResult(.....);

What should be the second argument here ?

In the deprecated Contacts API, I could use the following snippet, but not
sure about ContactsContract:

Intent i= new Intent(Intent.ACTION_GET_CONTENT,People.CONTENT_URI);
startActivityForResult(i, reqCode);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to