January 12th, 2011, 09:07 AM
|
#1 (permalink)
|
|
New Member
Join Date: Nov 2010
Posts: 12
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
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?
|
|
|