On Fri, Mar 19, 2010 at 6:54 AM, arvind awasthi <[email protected]> wrote:

> I design a screen to show it as splash screen it is not displaying can
> anybody tell how to do this.


You're running that code in the main UI thread, which means you set the view
to slash, then immediately put the main thread to sleep (which will make
your app unresponsive), then you change the view again so the first screen
has not shown up since the main thread (which you blocked) never got a
chance to process the command to set the splash screen.

You need to start with the splash screen, then schedule a Runnable to run in
2 seconds (or whatever) on the UI thread with the code to change to the
other layout.

Also, read up on Threads.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to