android - Parse Contact detail by URI -
i wondering there way of parsing contact details (number,email etc.) specific uri address received contact list
example: //assume data variable ia populated uri address of specific contact picked contact list
uri contact = contact = data.getdata();
how acutely parse contact details it's number, email, organisation , on..?
thanks,
ray.
for email can use
// query email cursor = getcontentresolver().query(email.content_uri, null, email.contact_id + "=?", new string[] { id }, null); int emailidx = cursor.getcolumnindex(email.data); // let's first email if (cursor.movetofirst()) { string email = cursor.getstring(emailidx); }
change email phone you'll contact no.
Comments
Post a Comment