reading Email addresses from the phone

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

reading Email addresses from the phone

Postby murali.lancer » Fri Feb 19, 2010 4:16 pm

Hi all today i am posting ,how to get all the Email addresses of our friends from our contacts

Cursor emails = managedQuery(Contacts.ContactMethods.CONTENT_URI,null, null, null, null);
if (emails.moveToNext())
/ /here u can get the email address ,we can store this in to a string . emails.getString(emails.getColumnIndex(Contacts.ContactMethods.DATA));

Posts: 37
Joined: Mon Jul 13, 2009 10:37 am
Location: banglore


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 2 guests