Manoj,

I've started documenting solutions to issues I personally encounter at
"http://www.androidref.com";.  I do have SDK 2.1 contact lookup code
that you might be able to use under "How to create an SD card, store a
contact photo, and display the photo on the handset.":

//
//  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 <linkex.ma...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to