to get email adress ao one contact, I tried

String[] PROJECTION = new String[] {Contacts.ContactMethods._ID };

Cursor cu =
                getContentResolver().query
(Contacts.ContactMethods.CONTENT_EMAIL_URI,
                PROJECTION,Contacts.ContactMethods.PERSON_ID
                +"=\'"+IDPerson+"\'",null,null);

                        startManagingCursor(cu);



I found one person that I selected  by a cursor that I build before

 Cursor nameCursor = managedQuery(People.CONTENT_URI, new String[] {
                                                        People._ID, People.NAME 
}, null, null, null);

 and I selected one  id

String IDPerson = nameCursor.getString(nameCursor.getColumnIndex
(People._ID));

Could I use this code to get The mail adress  of the person with the
ID: IDPerson  and how!

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

Reply via email to