A Splash Screen is a introductory screen which is a first startup screen and appears when application opened. It is also appears when application fetches the relevant content such as Network Calls and Database.
- It is used to beautify and animate startup screen for an application.
- It is used to load Network Calls and Database in background.
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent i=new Intent(MainActivity.this,Home.class);
startActivity(i);
finish();
}
},5000);