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())
{
do
{
/ /here u can get the email address ,we can store this in to a string . emails.getString(emails.getColumnIndex(Contacts.ContactMethods.DATA));

}while(emails.moveToNext());
}
murali.lancer
Developer
Developer
 
Posts: 37
Joined: Mon Jul 13, 2009 10:37 am
Location: banglore

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google Feedfetcher and 3 guests