I am using content providers to retrieve contacts by their ID and then I am trying to get their names. However, I have noticed that the names and pictures are retrieved only for contacts that have no kind of facebook integration and exist only on the phone. Some of these facebook integrated contacts have data on the phone only so if I remove the facebook integration they would still be there. I have read in a previous post that Facebook data is not available through the contacts API. I would like to be able to get the contact names even if they are facebook integrated. How do I that? Here is my code:
Uri contact_uri = ContentUris.withAppendedId(Contacts.*CONTENT_URI*, id); Cursor contact_cursor = getContentResolver().query(contact_uri, *new*String[] { Contacts. *DISPLAY_NAME* }, *null*, *null*, *null*); String contact_name = contact_cursor.getString(contact_cursor.getColumnIndexOrThrow(Contacts.* DISPLAY_NAME*)); Your quick assistance is much appreciated =) Thanks! -- 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