wait till layout is shown

by guruk » Wed, 03 Jun 2009 20:00:31 GMT


Sponsored Links
 Hi, i have a main activity that needs quit a lot to load
so i thought about a trick:

i call a intropage that shows a pic and from directly it calls by
intent the
long loading page.

Finaly I thought I would see the pic and in the background the other
intent
is loading, when its done the intro page dissapear automaticly and
voila.

(yes i thought i am very clever.... )

But now i see, that the Intro Page does not come initialized at all.
I see in the header that the intro page is active, but the pic is not
shown.
immediatly it loads the main intent.

So i guess i have to options.. make a small wait (but how) that the
pic from
the intro is finaly shown.. or more professional I have the option to
request
from windowmanager or so, if the layout from the intro is full shown.
Only when that is done, I would call the Intent to start the main
activity.

Any Ideas?

Thanks
Chris

--~--~---------~--~----~------------~-------~--~----~



wait till layout is shown

by guruk » Wed, 03 Jun 2009 20:19:15 GMT


 i even tried to place my startactivity for the main activity
in

onSTART

but still my intro pics on the intro page are not shown.
immediatly it starts the mainactivity...


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


wait till layout is shown

by Marco Nelissen » Wed, 03 Jun 2009 23:39:28 GMT


 




The problem is that you're blocking the main thread, which prevents the UI
from being shown.
You don't really need your 'intro' activity. In your main activity, you can
just set a picture, then do whatever your activity needs to do at startup in
another thread, and once that is done, update the UI.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Upgrade Journey ke EClair resmi Was WTShare : Tutorial Upgrade Nexian Journey Ke Eclair / Froyo (Revised)

Thank you boss Iwan atas sharingnya,
per hari ini masih download file2 yg dibutuhkan.. baru semalam juga dapetin
Journey nya :-)

kalo upgrade ke EClair secara resmi bisa kah?
maksudnya datang ke Service Center atau semacamnya, apakah rekan2 disini
sudah ada yang pernah? kebetulan dapet nya stock 1.6 nih - menarik sih, tapi
pengen dipake sync ke Exchange server buat email nya.

Thank you in advance.

-- 
===============
"

2. (wta /wtb) aksesoris htc evo 4g

Para suhu suhu di sini mw tanya tempatnya untuk di daerah jakarta disekitar
mana yah?
Di kelapa gading ato itc cempaka mas ada gak?
Mw beli case sama batere yang 3000mah, dari kmaren nyari belom nemu

-- 
===============
"

3. Gtab ga bisa wifi

4. Review HTC Desire HD, Android Serasa Bioskop 14 Januari 2011

5. sms yang bisa di forward

6. [WTS] Nexian journey, 2nd tapi baru.

7. [WTA] Pengaturan Menu Android