Manoj,
I've tried twice to post an answer, but I still don't see it. It may
be because this is my first post, and it's in the process of being
moderated, but just in case, I'll try a third time.
Does this work for you (SDK 2.1):
//
// Find contact based on name.
//
ContentResolver cr = getContentResolver();
Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null,
"DISPLAY_NAME = '" + NAME + "'", null, null);
if (cursor.moveToFirst()) {
String contactId =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));
Jay
On Feb 12, 12:09 am, Manoj <[email protected]> wrote:
> well i have created a receiver for the message and i am getting the
> message and the contact from that but not i need to know whether it
> exist in my contact list or not..
--
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