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
emails
Contacts.Organizations.CONTENT_DIRECTORY with a base uri to obtain
organization details
People.Phones.CONTENT_DIRECTORY with a base uri to obtain phone
details

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

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

Thanks,
Pankaj

--



Other Threads

1. When call mWifiManager.isWifiEnabled , it crash. thanks in advance.

ooooooh~ , It 's true . No permission that :
    <uses-permission
android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
    <uses-permission
android:name="android.permission.UPDATE_DEVICE_STATS"></uses-permission>
    <uses-permission
android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
    <uses-permission
android:name="android.permission.WAKE_LOCK"></uses-permission>

Thanks again.

-- 

2. G. Checkout Declined Payments

Hi folks,
just two questions:

1) I'd like to know whether a paid app remains installed on the phone
for the next 7 days (as google says) when an order is set as payment
declined.
2)  Some users tried to buy more times the same app but always they
got a declined payment. Some users say it's a credit cards problem due
to different currencies (i sell in euros and they are in u.s.)
What I have to say to these users that cannot buy my app? I'm losing
clients...
Can google answer me/us please?

tnks.

-- 

3. AlertDialog.show() leaks when phone rotates

4. Set ringtone from raw resource?

5. Using raw resource sound file as Ringtone

6. Anyway to check if any items on the history/activity stack?

7. Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo