Thursday, March 1, 2012

Splash Screen in Android

If you wanted splash screen in Android apps, Splash screen will come first for few second then from splash screen main screen will lunch.
R.layout.splash -> this is .xml layout, it will show how you wanted to show your splash screen.
startActivity(new Intent(SplashScreen.this, MainScreen.class)) - > Mainscreen will be your next screen you wanted to come automatically after splash screen.
CountDownTimer timer = new CountDownTimer(1000, 1000)  -> splash screen will visible for 1 sec.