I am currently accessing the contacts from sqlite, using pre-defined
CONTENT_URI, as described in:
http://code.google.com/intl/fr/android/devel/data/contentproviders.html#querying


In Contacts.PeopleColumns, there should be a PHOTO_VERSION
("photo_version") column, as described in:
http://code.google.com/intl/fr/android/reference/android/provider/Contacts.PeopleColumns.html

So, let's:
Cursor c = getContentResolver().query(People.CONTENT_URI, null, null,
null, " display_name ASC ");
startManagingCursor(c);

if( !c.moveToFirst()) {
     return;
}
int idxPhoto = c.getColumnIndex(PeopleColumns.PHOTO_VERSION);

idxPhoto is set to -1... Examining c with a debugger shows that no
such column exists in the query. Is it a documentation bug, or am I
missing something?


- Etienne
www.jamdroid.org

--~--~---------~--~----~------------~-------~--~----~
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