Android Splash Screen Example

In this tutorial you will get android splash screen example.

Splash screen is a simple screen or activity used to display some progress when application is launched. Some developers use splash screen to just show company logo or to engage user while some important data in loaded in background. After few seconds or minutes splash screen is stopped and any other activity is started.

Below I have given an example of splash screen of Facebook app. This screen appears for few seconds when app is launched.

facebook splash screen

Android Splash Screen Example

Create new project with a blank activity with name Splash. Use package name as com.splash. Now create another blank activity with name MainActivity, it is the activity that will open after splash screen.

Note: Make sure Splash is launcher activity.

Copy any image with name logo in res/drawable folder. We will use this logo to show on splash screen.

Now add following codes in respective files.

Splash.java

 

activity_splash.xml

 

MainActivity.java

 

activity_main.xml

 

Android Splash Screen Example
I have used Thread class and sleep() method to keep splash screen for 10 seconds. You can change the time according to you. After that Intent class is used to open MainActivity.

If you are facing any problem related to above android splash screen example then feel free to ask it by commenting below.

Happy Coding!! 🙂 🙂

3 thoughts on “Android Splash Screen Example”

  1. Hello i want to Copy Sofware From Feature Phone to Pc or Android so what to doo.. its Keypad Basic Colure Phone…
    Please inform me thank you…

  2. hi
    can you give tutorial on how to fetch the files in android..? files in the sense if i want to scan files or particular folder for just checking desired file is in there at that folder or not by coding in android studio…if you can…please help me for this..?

Leave a Comment

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