Thanks a lot mark.I will try the above code.

On Tue, Feb 3, 2009 at 10:46 PM, Mark Roberts <[email protected]> wrote:

>
> If you are looking for the emails for  a specific contact then you
> could do it like this where id is the id of the contact for which you
> are trying to get the data:
>
> public static final String[] METHODS_PROJECTION = new String[] {
>        People.ContactMethods._ID,
>        People.ContactMethods.KIND,
>        People.ContactMethods.DATA,
>        People.ContactMethods.TYPE,
>        People.ContactMethods.LABEL,
>        People.ContactMethods.ISPRIMARY,
>    };
> mUri = ContentUris.withAppendedId(Uri.parse("content://contacts/
> people"), id)
> Uri methodsUri = Uri.withAppendedPath(mUri,
> People.ContactMethods.CONTENT_DIRECTORY);
> Cursor methodsCursor = getContentResolver().query(methodsUri,
> METHODS_PROJECTION, "kind=1", null, null);
>
> On Feb 3, 12:05 pm, dilu <[email protected]> wrote:
> > Hi,
> > Please tell me how to get lists of email from contact application in
> > android?If possible then please provide me some sample code or
> > tutorial on this.
> > please help me.
> > Thanks
> > dileep
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to