Cursor c = query(Contacts.CONTENT_URI,...,"_id IN (12,24,35)",null,...)

You will need to use a StringBuilder to construct the selection out of
contact ids.

Cheers,
Dmitri

On Mar 15, 2010 3:19 AM, "Pankaj" <[email protected]> wrote:

Hi,

I have a list of 'n' contact ids corresponding to which I need to
obtain the contact details. One simple way to make n queries using the
contact ids and retrieve those contacts. But this will be very time-
consuming especially if n is large. I would like to know if there is
any simpler way to obtain these results (like batch query etc).

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]<android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to