How to Make Splash Screen Without Blank Screen Before Launching an Activity in Android Studio

Splash Screen in Android is the first screen of an app which appears for a fixed amount of time before the app is opened. We use this screen to display some kind of progress before the app is completely loaded as well as to display some basic info like app name, app logo etc.

In this post, we learn how to create a splash screen and how to remove blank screen which appears before the launching of the splash screen.

Problem of Blank Screen

Most of the developer use an activity to create a splash screen, which leads to the problem of the blank screen appears before launching of the splash screen.

Solution of Blank Screen

The main reason of blank screen is that your layout file is visible only after the app is fully started. You can resolve this problem by specifying the background of your splash screen as the theme of the activity background. You have to just add a piece of code in your style resource then configure SplashTheme as the theme of your splash activity in your AndroidManifest.xml.

Demo

Create New Project

Before Implementing the following code first create a new project in Android Studio, go to File => then go to New => then select NewProject option. In Add an activity option select default activity(Blank Activity) and proceed.