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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -