开发者

Activity loading time issue( performance issue while loading Activity)

开发者 https://www.devze.com 2023-04-06 05:26 出处:网络
Am moving from one Activity to another activity, in second activity am showing the listview. Am usingarraylist\'s data to fill the listview, so for that i have used \"for\" condition for looping. so f

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

精彩评论

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