Back to project page App-Growth-Engine-Android-TabUI.
The source code is released under:
Apache License
If you think the Android project App-Growth-Engine-Android-TabUI 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.hookmobile.tabui.sample; /* ww w . ja v a 2s .c om*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.KeyEvent; public class SplashScreenActivity extends Activity { private Handler handler = new Handler() { public void handleMessage(Message msg) { startActivity(new Intent(SplashScreenActivity.this, MainActivity.class)); finish(); }; }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splashscreen); new Thread() { @Override public void run() { super.run(); try { Thread.sleep(2000); } catch (InterruptedException e) { } handler.sendEmptyMessage(1); } }.start(); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { return false; } }