Splash Screen For Android Apps
Tutorial on how to implement a splash screen in an Android app.
Create a new android app with an empty activity
Step 2
Add another empty activity in the project and name it as "SplashScreen". Generate the layout as well.
Step 3
Go to AndroidManifest.xml and cut the XML tag <intent-filter> from the main activity to activity "SplashScreen". Whenever this app will start will will the the activity "SplashScreen" first
Step 4
Right click on the folder "res" and from the context menu select new then select "Image asset". select an appropriate image which will appear on the splash screen
In the "Activity_splash_screen.xml" add an "ImageView" control and select the uploaded image.
Step 5
In the "SplashScreen.java" add the following code in the method "onCreate" the make the splash screen appear for 3 seconds
Please donate and support at https://www.paypal.me/Rajcoomar
Steps
Step 1Create a new android app with an empty activity
Step 2
Add another empty activity in the project and name it as "SplashScreen". Generate the layout as well.
Step 3
Go to AndroidManifest.xml and cut the XML tag <intent-filter> from the main activity to activity "SplashScreen". Whenever this app will start will will the the activity "SplashScreen" first
Right click on the folder "res" and from the context menu select new then select "Image asset". select an appropriate image which will appear on the splash screen
In the "Activity_splash_screen.xml" add an "ImageView" control and select the uploaded image.
Step 5
Step 6
Run the application the splash screen will appear as follows:
Download
Click here to download the source code:Please donate and support at https://www.paypal.me/Rajcoomar
Comments
Post a Comment