Back to project page spotdroid.
The source code is released under:
MIT License
If you think the Android project spotdroid 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.spotdroid.mobile.android.gui; /*w ww . j a v a2s . co m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import com.spotdroid.mobile.android.R; /** * Shows the splash screen for app start. */ public class SplashActivity extends Activity { /* (non-Javadoc) * @see android.app.Activity#onCreate(android.os.Bundle) */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Handler handler = new Handler(); handler.postDelayed(new Runnable() { public void run() { Intent intent = new Intent(SplashActivity.this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); finish(); } }, 3000); } }