Basically I have this:
Cursor cur = ...
for (int i = 0; i < cur.getColumnCount(); i++) {
String name = cur.getColumnName(i);
Log.d("dao",name);
int type = cur.getType(i);
... and getting in the getType()
call the above Exception.
The column name is logged correct.
ERROR AndroidRuntime Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0