android java.lang.IllegalStateException: Couldn’t read row 0, col 0 from CursorWindow

01-29 13:41:56.520: W/CursorWindow(4121): Window is full: requested allocation 5140987 bytes, free space 2096617 bytes, window size 2097152 bytes

Android SQLite returns rows in cursor windows that have the maximum size of 2MB as specified by config_cursorWindowSize. If your row exceeds this limit, you’ll get this error.

Storing large data in sqlite database is not a good idea anyway. Store files in filesystem and paths in database.

Leave a Comment