开发者

Activity loading time issue( performance issue while loading Activity)

Am moving from one Activity to another activity, in second activity am showing the listview. Am using arraylist's data to fill the listview, so for that i have used "for" condition for looping. so for that looping its taking time to load that page. That page loading time is depending up on the data in the开发者_如何学Python arraylist, if there is more data in the arraylist then looping taking time. Is there any way to reduce page loading time.


I would take a look into doing your long-running logic in an AsyncTask, and when it's completed, display your listview results. You can find more info on this at:

http://developer.android.com/resources/articles/painless-threading.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜