How to create a splash screen in android?

By | September 10, 2011

Hello everyone today i will show you how to create a splash screen in android.
This is one of the simplest ways to create a splash screen however there are another ways to create the splash screen.
Lets look at the code.

We need two layouts one for the splash screen and another for the first screen that comes after splash screen.

The splash screen layout will look like this.

Now the main.xml file.

Now the main java file.

package pack.coderzheaven;

import android.os.Bundle;
import android.os.CountDownTimer;

public class SplashScreenDemo extends Activity {
    public void onCreate(Bundle savedInstanceState) {

	private void createFirstScreen()

	private void creatingSplashScreen()
		 new CountDownTimer(5000, 1000) {
                   public void onTick(long millisUntilFinished)

		     public void onFinish() {

Make sure you have an image named “android.png” or “android.jpg” in your res/drawable folder.

Leave a Reply

Your email address will not be published. Required fields are marked *