Splash Screens in Android: Method 1
Most applications require an introductory opening screen.
Such introductory screens are called Splash screens. An activity that is finished within a span of 2-3 seconds or dismissed on the click of a button is a splash screen.
The splash screen displays for 2 seconds and then the main activity of the application appears. For this, we add a java class that displays the splash screen. It uses a thread to wait for 2 seconds and then it uses an intent to start the next activity.
The layout of the splash activity, splash.xml is like:
The splash screen looks like:
In 2 seconds, this activity leads to the next activity, which is the standard Hello World Android activity :
(not handled yet)