When using Sqlitedatabase to insert data, Android throws the following exception:
W/cursorwindow (25503): window is full:requested allocation 5583269 bytes, free space 2096639 bytes, window size 2097152 b Ytes
E/cursorwindow (25503): Failed to read row 0, column 1 from a cursorwindow which have 0 rows, 5 columns.
W/system.err (25503): java.lang.IllegalStateException:Couldn ' t read row 0, col 1 from Cursorwindow. Make sure the Cursor was initialized correctly before accessing data from it.
W/system.err (25503): at android.database.CursorWindow.nativeGetString (Native Method)
W/system.err (25503): at android.database.CursorWindow.getString (cursorwindow.java:442)
W/system.err (25503): at Android.database.AbstractWindowedCursor.getString (Abstractwindowedcursor.java : 51)
WORKAROUND: If the database table field value exceeds 2M, then the value exists in the file and the file path exists in this field.
Reference:
Http://stackoverflow.com/questions/21432556/android-java-lang-illegalstateexception-couldnt-read-row-0-col-0-from-cursorw
http://blog.csdn.net/yuxiaohui78/article/details/39096151
W/cursorwindow (25503): Window is full:requested allocation 5583269 bytes, free space 2096639 bytes