Re: [android-developers] CursorAdapter performance

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 9:32 PM, Steven Nieh xiaoqian...@gmail.com wrote:

 Everything works well except when I try to scroll 1000 lines, the
 application freezes and stop responding. Everything backs to normal after 3
 seconds. What's going on there?


Based on this little information: you're doing too much work in the main
thread - probably in your getView() method.


 Is there anything I could do? Thanks!


Offload the bulk of the work to a helper thread / AsyncTask. Or only scroll
999 lines.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] CursorAdapter performance

2010-12-28 Thread Steven Nieh
Hello everyone, I'm new to android development. I'm using cursor adapter for 
large data in my list view. Everything works well except when I try to 
scroll 1000 lines, the application freezes and stop responding. Everything 
backs to normal after 3 seconds. What's going on there?

Is there anything I could do? Thanks!

Steven

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