• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Returning contact details from ContactsContract

Broto25

Lurker
Hi everybody,

I'm having a small issue trying to get my contacts' details using the new API 5 (2.0)
What i'm doing is :

Intent i = new Intent(Intent.ACTION_PICK, android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_URI);

startActivityForResult(i,1);

This part of the code is going alright, it shows all my contacts...The problem is with the result of that.
What i get is a String like "content://com.android.contacts/data/1"

How should i get the personal information of the contact (like display_name, phone number) from this DB entry??

Thanks!
 
Did you ever find help on using the new ContactsContract class? Let me know if you found any good tutorials.
 
try to google key words like, ContractContacts, contacts android 2.0, all the things i know are coming from this kind of search... the new API is not really well documented, but you can gather some helpful stuff in the other forums.
I
 
Back
Top Bottom