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. set chlidDivider in ExpandableListView

This is my ExpandableListView

<ExpandableListView android:id="@+android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:listSelector="@android:color/transparent"
        android:groupIndicator="@null"
        android:dividerHeight="2px"
        android:divider="@color/my_list_divider_color"   (#FFFF0000)
        android:childDivider="@color/
my_list_child_divider_color"   (#FF00FF00)
/>

When I execute this in emulator, green(childDivider color) is all over
the place.

It seems if childDivider is ColorDrawable, it has no bound.

Is this a bug or intented?

-- 

2. Removing standard package SpeechRecorder in Build

I would like to remove SpeechRecorder.apk from my rootfs.
How can I achieve this through android device specific configurations.
I am trying out rowboat sources for OMAP3 evm.

Thanks,
Arun

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to Benchmark Video Playback performance?

4. Multi-touch in browser of Froyo AOSP

5. CheckBoxPreference default value

6. DGPS post process corrections in android gps

7. Save User Data in android