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. Is there any one re-compiled the emulator

I downloaded the source code from

and tried to compile
but found a file missing, the android-configure under SDL-1.2.12 is

and then I tried to get that file, then do the compile simply by

then met another problem, the "dlopen","dlclose"...undefined.

I checked my /usr/lib folder, the libdl is there.

My question is if google want to open these source code, open it
seriously please, especially to our individual developer.



2. Error building HelloAndroid Sample with a new 0.9 beta SDK

I've followed the SDK installation instruction and tried to build a
HelloAndroid application.
but I got this error.

[2551-08-27 02:37:15 - HelloAndroid] ------------------------------
[2551-08-27 02:37:15 - HelloAndroid] Android Launch!
[2551-08-27 02:37:15 - HelloAndroid] adb is running normally.
[2551-08-27 02:37:15 - HelloAndroid] Could not find HelloAndroid.apk!

I'm using Windows XP SP2, System Locale: Thai
Sun Java SDK 6u7
Android SDK located at d:\android-sdk-windows-0.9_beta
I also added "d:\android-sdk-windows-0.9_beta\tools" to PATH
encironment variable.
Eclipse 3.4 Java JEE Edition with ADT pluging v 0.7 pointing SDK
location to "d:\android-sdk-windows-0.9_beta"

I tried to use an old SDK (m15) with Eclipse Europa (3.3), ADT 0.4.0
(or something older than 0.7) and it work just fine.
After trying and digging around the net for 6 hours. I can't find the
solution for this.

How to solve this?


3. Mp3 file identification whether its playing slow or fast

4. Creating a Dialog Activity with default OK and Cancel buttons

5. About dexdump for beta0.9

6. ListAdapters

7. no certificates at entry res/drawable/icon.png; when run my application (sdk 0.9)