1

I am aware about the Android Contact picker which gives us the URI of any selected Contact.

The URI looks like this: content://com.android.contacts/contacts/lookup/0r7-2C46324E483C324A3A484634/7

I need to get the URIs of all the contacts (something like a 'URI array') in the phone. Can someone help me out over doing this?

4

1 回答 1

4

You can get all Contacts with the following query : cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); Where cr is a ContentResolver.

Have a look here : get all contacts.

于 2013-07-11T12:36:56.370 回答