To do this you have to create a Splash Screen layout and associated activity. You have to use a Timer or Thread to handle it. First create a splash.xml
file and also create an activity SplashActivity.java
.
public class SplashActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash.xml);
Timer timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
startHomeActivity(); // start home after 3 seconds
}
}, 3000); // three seconds wait, you can change it
}
}
Hope it will help you.