In addition to what I said:

Your app is probably too slow / unresponsive because I assume that you 
query that data on the UI thread. However, you should do all your database 
queries in a separate thread. You can use an AsyncTask for that.

Furthermore I think you should re-write your Adapter so it only loads a 
fixed-size "window" of items from the database. As soon as an item is 
requested from the adapter which is not loaded / part of that "window", you 
can load the next adjacent window in an AsyncTask and close the old "window 
cursor".

If you organize your Adapter like that, you are in control of the memory 
consumption and don't risk an OutOfMemory exception on "weaker" devices 
with less heap.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to