(+91) 113 551 1687 contact@syncsas.com New Delhi

How to Add Splash Screen in android App

Splash Screen is most commonly the first startup screen which appears when App is opened. In other words, it is a simple constant screen for a fixed amount of time which is used to display the company logo, name, advertising content etc.

A splash screen is a screen which appears when you open an app on your mobile device. So, we can say it’s the first impression for the user. It’s usually used to show the logo of the app or an image related with the app.

In my personal opinion, this is the most simple way to implement a static splash screen.

So, let’s code it.

  1. Create a new project in Eclipse by navigating to File ⇒ New Android ⇒ Application Project and fill required details. (I kept my main activity name as MainActivity.java)
  2. For Splash Screen we are creating a separate activity. Create a new class in your package and name it as SplashScreen.java
  3. Open your your AndroidManifest.xml file and make your splash screen activity as Launcher activity.

Notice that we do not have setContentView() for this SplashActivity. View is displaying from the theme and this way it is faster than creating a layout.
If you look at the time splash screen displays is exactly the same with the time taken by app to configure itself because of a cold launch (very first launch). If the app is cached, the splash screen will go away almost immediately.

Hope using this article you will be able make your splash screen work in a right way.