[android-developers] Speed up showing Activity with ListView

2010-12-23 Thread Johannes De Smedt
I have an application that loads a list of items with thumbnails from a server, and shows those items in a ListView. The laoding of the data is done before the ListViewActivity is started and while that is being done, a ProgressDialog is shown. When the loading of the data is done, I start an

Re: [android-developers] Speed up showing Activity with ListView

2010-12-23 Thread Kostya Vasilyev
Johannes, Take a look at code in your onCreate, to see what's taking too long. Add logging statements at entry to onCreate and after each step of the work it does. Another reason could be that you kick off a thread in onCreate, and that thread does a lot of processing right away - using too

Re: [android-developers] Speed up showing Activity with ListView

2010-12-23 Thread Vinay Julme
While loading the images from net you can do a lazy load. One of the sample is http://open-pim.com/tmp/LazyList.zip Good sample on how to display the list and then load images. But you would have to customize it to your needs. On Thu, Dec 23, 2010 at 3:00 PM, Kostya Vasilyev kmans...@gmail.com

Re: [android-developers] Speed up showing Activity with ListView

2010-12-23 Thread Kapil Lokhande
Hi Johannes, i think when your list data is in process fetch from server, you can create your listview or other widgets on activity.only you have make sure after thread which one fetching data from server will send message to your ui thread about completion dat fetching. and then on resume you