Back to project page DivisionByZero.
The source code is released under:
Apache License
If you think the Android project DivisionByZero listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ggstudios.divisionbyzero; // w w w . j ava 2s. c o m import android.content.Intent; import android.os.Bundle; import android.os.Handler; public class ActivitySplashScreen extends BaseActivity { private static final Handler handler = new Handler(); private static final int SPLASH_SCREEN_TIME = 2000; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash_screen); new Thread() { public void run() { StateManager.getInstance().loadUserInfo(); } }.start(); handler.postDelayed(new Runnable() { @Override public void run() { if(ActivitySplashScreen.this == null || ActivitySplashScreen.this.isFinishing()) { // this the splash screen was dismissed by the user then don't continue... return; } Intent i = new Intent(ActivitySplashScreen.this, ActivityMainMenu.class); startActivity(i); finish(); } }, SPLASH_SCREEN_TIME); } }