How to create Splash screen in your Android app

Welcome back to shortlearner.com, in our previous post we learn the complete installation process of android studio.
today we learn what is splash activity and how to create it.
first of all we should know about what is splash activity, so basically splash screen is the user’s first experience of your application.

It normally used to display some kind of progress before the application setup completely.it is a simple constant screen for a fixed amount of
time which is used to display the company logo, name, advertising content etc.This tutorial will help you to learn How to create Splash screen in your Android app.

Advertisement

Implementation

To implement above approach,
first create an XML layout , Open res -> layout -> activity_main.xml and add following code:
In this step we simply added our code to display layout after Splash screen run.

activity_main.xml

Now create splash activity design in xml

activity_splash.xml

Now open app -> java -> package -> MainActivity.java and add the below code.

splashactivity.java

AndroidMainfest.xml

Tags: No tags

Comments are closed.