How to get all Contact details in a single query

by Pankaj » Wed, 17 Mar 2010 14:17:24 GMT

Sponsored Links
 I am using Android SDK 1.6
I want to get name, all emails, all phone numbers, organization
details for a contact.

Currently what I do is append the

People.ContactMethods.CONTENT_DIRECTORY with a base uri to obtain
Contacts.Organizations.CONTENT_DIRECTORY with a base uri to obtain
organization details
People.Phones.CONTENT_DIRECTORY with a base uri to obtain phone

So basically I need to make 3 queries per contact to obtain these

What I want to know is that, is there a simpler and more efficient way
to achieve what this.



Other Threads

1. Wt-dipoison-nin 4g evo dunk ;)

As subject,

Mau diracunin dong ama suhu2 yg sudah meminang 4 g evo.
Sebelumnya ga pernah  make cdma jd mau nanya2 dulu dah drpd malu bertanya
sesat di gadget? :p
Lansung aja mau nanya display layar belum super amoled ya kalau ga salah ?
Dan apakah sudah support &play file divx?
Sorry byk nanya suhu2 dimari ,lg malas google jd butuh testi suhu2 dimari
aja deh :p
Oh ya lokasi di kemayoran sunter sktrnya (mangga 2) utk posisi jaringan
cdma-nya apakah oke?

Trims sebelumnya

"Indonesian Android Community [id-android]" 

2. DOM2String


Is anyone knew how convert DOM object to String in Android 1.5? I can build
own recursive function, but I prefer some JAR library or trick in Android. I
will be glad if you could help me.

Best regards.

Wojciech Topolski


3. Froyo coming July 13th - are you ready?

4. Object Relational Mapping --- Tiny ORM on GitWeb

5. Center MapView on new added GeoPoint in ItemizedOverlay

6. VOOT: Undangan Launch Kompas Apps for iPad

7. Delete SD card contents