Amit Amit - 7 months ago 45
Android Question

Output values found in cursor to logcat? - Android

I'm trying to debug an issue myself. May post it later if I fail ;-)

My logcat log states

"android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2"

I would like to use
log.v("desc", cursor)
to show what the cursor returns. Is there a way to specify a value from it like cursor[0] ?


Have you called moveToFirst() on Cursor?