And-Rider wrote:
> Does database insertion affect the scrolling by any
> chance??

Bear in mind that phones have very slow CPUs and very limited RAM. While
Android lets you do more than one thing at once via threads and
processes, that doesn't mean background work is somehow magically free.
Background work will slow down foreground work.

You can try reducing the priority of your background thread. You can try
slowing down your background thread (e.g., inject some
SystemClock.sleep() statements to be even kinder to the foreground
thread). You can load items into your list in segments, so the user
knows to expect a pause -- see my EndlessAdapter for a lightweight
example of this:

http://github.com/commonsguy/cwac-endless/tree/master

There are probably other tricks as well.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.5 Programming Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
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