Created
June 18, 2015 19:28
-
-
Save ar-android/9fe9b39c0f8e413aa2a6 to your computer and use it in GitHub Desktop.
Splash Screen Task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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