Re: [android-developers] Uri for accounts table in contacts db

2013-10-03 Thread Giles Ian
Thanks Douglous and Andrew, What I am actually looking for is *account_id* based on *account_name* and * account_type, *and this info is only available in accounts table. On Wed, Oct 2, 2013 at 11:24 PM, Andrew Mackenzie < and...@mackenzie-serres.net> wrote: > The contacts content provider is q

[android-developers] Uri for accounts table in contacts db

2013-10-02 Thread Andrew Mackenzie
The contacts content provider is quite complex, with three "tables" for contact' raw contact and data. I suggest you read the long explanation of it in developer.android.com there the answers to your questions are provided, with a number of constants for Uris and also field names. BTW: be sure

Re: [android-developers] Uri for accounts table in contacts db

2013-10-02 Thread Douglas Drumond
Use ContactsContract.Contacts.CONTENT_URI or ContactsContract.Contacts.CONTENT_LOOKUP_URI instead of direct access. Also, don't forget to request permission See https://developer.android.com/reference/android/provider/ContactsContract.Contacts.htmland https://developer.android.com/reference/andro

[android-developers] Uri for accounts table in contacts db

2013-10-02 Thread Giles Ian
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 android-developers@googlegroups.com To unsubscribe from this group, send emai