Use ContactsContract.Contacts.CONTENT_URI
or ContactsContract.Contacts.CONTENT_LOOKUP_URI instead of direct access.
Also, don't forget to request permission
<uses-permission android:name="android.permission.READ_CONTACTS" />

See
https://developer.android.com/reference/android/provider/ContactsContract.Contacts.htmland
https://developer.android.com/reference/android/provider/ContactsContract.html


--
Douglas Drumond
*GDG Campinas <http://www.gdg-campinas.org/>
 –
**eee19.com* <http://eee19.com/>
*gplus.to/douglasdrumond

* – *@douglasdrumond <https://twitter.com/douglasdrumond>*



2013/10/2 Giles Ian <[email protected]>

> I tried with
>
> content://com.android.contacts/accounts
>
> but that does not work
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to