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!
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!