• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Cursor for ListView has more than 1 MB

Hello,
I have a ListView with a CursorAdapter.
There are 100 Entries with a Picture (base64) in TEXT Column.

When I startb the ListView then I get after 15 Entries an error:

Code:
01-12 12:36:30.387: ERROR/CursorWindow(7233): need to grow: mSize = 1048576, size = 54725, freeSpace() = 16570, numRows = 15
01-12 12:36:30.387: ERROR/CursorWindow(7233): not growing since there are already 15 row(s), max size 1048576
01-12 12:36:30.387: ERROR/Cursor(7233): Failed allocating 54725 bytes for text/blob at 14,8

So the Problem is my Cursor run into more data than 1MB which the Cursor can hold.

First Question:
Is ther any way to avoid them? I tried more Cursors and put them together in a MergeCursor but same effect.

Second Question:
My App is not stopping about that error, all 100 Entries will loading and display in the Listview. So maybe I can live with that error in the logcat?
 
Back
Top Bottom