A splash screen is a screen which appears when you open an app on your mobile device. So, we can say it's the first impression for the user. It's usually used to show the logo of the app or an image related with the app.
In my personal opinion, this is the most simple way to implement a static splash screen.
So, let's code it.
First of all, create a new android project with a empty activity called SplashActivity.
Once that it's done we are ready to implement our SplashScreen:
6. Now, implement this code in the SplashActivity. I'll use a Handler to create a small delay and then go to the MainActivity.
And that's all! You have a SplashScreen in your app. Of course, you can use an animation and make it really awesome but I'll show it in another post.
Thanks for reading!
Here is the repo just in case: