I am able to retrieve SMS conversation from the query properly and it is working. Now I would like to add photo of particular contact? I was able to get the contact's display name by putting the following:
Cursor cs= getContentResolver().query(Nameuri, new String[]{PhoneLookup.DISPLAY_NAME},PhoneLookup.NUMBER+"='"+address+"'",null,null);
if(cs.getCount()>0)
{
cs.moveToFirst();
contactName = cs.getString(cs.getColumnIndex(PhoneLookup.DISPLAY_NAME));
}
I am not able to find PhoneLookup._ID? Is there any easy way retrieve photo similar to Display_name?
Let me know!
Thanks!