Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old 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
Default 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?

Markus Taubek is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
text not visible in the listview with Cursor data urspands Android Applications 1 April 6th, 2011 09:31 AM
cursor not returning correct row position in ListView motoko Application Development 0 September 14th, 2010 10:58 AM
How do I get the cursor to go where I want it. aliveon2legs HTC EVO 4G 8 June 8th, 2010 08:53 AM
Help with cursor!!! kitty Application Development 0 February 9th, 2010 12:57 AM
showing cursor data in a listview kitty Application Development 0 February 4th, 2010 01:01 AM



All times are GMT -5. The time now is 11:38 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo