loading views in asynctask
<p>I have many views in my app, which takes lot of time during startup.
I am using emulator and it takes something like 15 seconds to shows the screen. App runs fine after that.</p>

<p>I tried to implement asynctask to do view loading, but I am getting errors.
Android documentation states I should not setup views outside UI thread.
But it doesn't say, I can't.</p>

<p>How can I implement a loading screen, which load views. Dropping views is not an option, as app is drawing application and requires those views for quick tool selection.</p>

<p>Or should I setup all my views in onPostExecute(), before calling dialog dismiss. But this will still freeze the UI thread for that time. And I will be in same position.</p>

<p>I haven't tested in device, but I know if UI thread is blocked for more than 5 seconds, it shows app not responding dialog. I want to prevent it.</p>

<p>I am targeting SDK 10. Also, will this take same time when it runs on actual device. App is for Samsung galaxy note, which is quite snappy.</p>

<p>P.S. My internet is still down from 3 days. I am using my mobile client and refferring to offline SDK docs.</p>
