The value of the Contacts.ContactMethods.KIND are int type, not string
type. Try String selection = Contacts.ContactMethods.KIND
+" = 1";

On 21 déc, 03:50, jphdsn <[email protected]> wrote:
> hi, I code an app and want to retrieve email from Contacts app of
> android. If somebody knows how to retrieve the mails of a contact...
> it will be cool or if someone could tell me why the code below doesn't
> work and how  it could be work...
>
> String selection = Contacts.ContactMethods.KIND
> +"="+Contacts.ContactMethods.CONTENT_EMAIL_TYPE;
>
> Cursor groupCursor1 = managedQuery(
>    Contacts.ContactMethods.CONTENT_URI, null,selection,null, null);
>
> thanks a lot
--~--~---------~--~----~------------~-------~--~----~
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