Create a new project in Eclipse named AnimatedSplashScreen
Create a new xml file in the res/layout folder named splash.xml and add the following code to it.
Add the following code to AndroidManifest.xml
Now add the following code to AnimatedSplashScreenActivity.java
Add a new class in the src folder and named MainActivity and add the following code to it.
And finally add the following code to main.xml