Hi! I'm trying to query the Android's MediaStore.Images.Media to get
the images contained in the device. I get my cursor on the DB like
this:

Cursor cursor =
context.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
                                projections, selection, null, sortColumn);

and I get the indices of the columns this way:

int dataIdx = cursor.getColumnIndex(DATA);
...
int idIdx = cursor.getColumnIndex(MediaStore.Images.Media._ID);

unfortunately it seems that the column index idIdx is always -1, which
means the column doesn't exist. Am I doing something wrong? Is there
anyone else experiencing the same?
Thanks!

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