How to create a splash screen in android

How to create a splash screen in android

When an Android application starts for the first time in a device, it takes some time before the application loads.Instead of showing a blank screen that, its good as a developer to design a splash screen that tells a user to either hang on it wait as the applications loads.You can use a progress bar.

In this tutorial am going to show you how to implement a simple Splash Screen example.We are going to create two Activities in this example.The MainActivity will be loaded or it will be started by the splash screen Activity.

SplashActivity.java

activity_splash.xml


AndroidManifest.xml

MainActivity.java

activity_main.xml

How to create a splash screen in android

This application is for my coming application Mafisizone that am going to share on google play store.To download the whole source code click here.