I believe that one of the columns is still missing, so you get this error at one of these lines:

cursor.getString(cursor.getColumnIndex("blah"))


Where getColumnIndex() returns -1, because the column is not in the query results, and getString() is being asked to get the data for column -1, which is invalid.

- Change your getColumnIndex to getColumnIndexOrThrow, this will let you see which column is missing in the query

- Cache column indices outisde the loop

- Before running again, uninstall the application with "adb uninstall" to force the database to be recreated

-- Kostya

03.09.2010 15:24, kingh32 пишет:
E/CursorWindow( 1354): Bad request for field slot 0,-1. numRows = 1,
numColumns
= 2


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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