lory105
lory105

Reputation: 6302

Android: display a layout for some second at launching app

If the app isn't already stored in memory and it needs to execute the onCreate method ( after a kill ), I want to show a layout ( essentially an image ) for some seconds when the app is launched. Then I want to load the basic layout of the app.

Something idea? can someone post some code?

thank to everyone

Upvotes: 0

Views: 354

Answers (1)

Chirag
Chirag

Reputation: 56925

I think, you are looking for Splash Screen.

Check this below link.

http://p-xr.com/android-tutorial-how-to-make-a-basic-splash-screen/

The following code will show you how to create a basic splashscreen for your Android application that will stay for 5 seconds. If we don't want to wait we can tap the screen to go directly to the next Activity. Source project is on the bottom of the tutorial.

Upvotes: 2

Related Questions