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
is loading, when its done the intro page dissapear automaticly and

(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
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
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

Any Ideas?



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


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. Interface Ids for the AVI AVI File Format Parser Node

Hi All,

while browising through the OpenCore code I found that there are
different interface ids for MP3 FF Parser node, MP4 FF parser node

#define KPVMFMP3FFParserNodeUuid PVUuid(0x03c8bdcc,0xe78a,
0x4bd7,0x83,0xf9,0xae,0x00,0x07,0xee,0x7d,0x37) in

#define KPVMFMP4FFParserNodeUuid PVUuid(0xb7d84b4a,0xfa69,0x4e4a,0x9d,
0x43,0xa2,0x22,0x83,0x3f,0xb1,0x2f) in pvmf_mp4ffparser_factory.h

these two interface ids are different. How did they decide on these

What is the similar interface id value that I can use in

Thanks and Regards,

2. Fadeout the right side of a bitmap using the alpha channel

I was hoping someone could help me fadeout the right side of a bitmap
using the alpha channel?  Basically, the left side of the bitmap has a
alpha of 255 and the right has an alpha of 0

Looks like canvas.drawBitmap does not use LinearGradient shader?

Thanks and cheers,

3. Landscape w/o opening keyboard

4. which junit to use when creating reusable library for Android apps?

5. Setting up Multiplayer Game over internet

6. Cant locate some apps

7. Grayscaling