Skip to content

Instantly share code, notes, and snippets.

@ar-android
Created June 18, 2015 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ar-android/9fe9b39c0f8e413aa2a6 to your computer and use it in GitHub Desktop.
Save ar-android/9fe9b39c0f8e413aa2a6 to your computer and use it in GitHub Desktop.
Splash Screen Task
private static int SPLASH_TIME_OUT = 3000;
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// This method will be executed once the timer is over
// Start your app main activity
Intent i = new Intent(Splash.this, MainActivity.class);
startActivity(i);
// close this activity
finish();
}
}, SPLASH_TIME_OUT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment