Android Open Source - App-Growth-Engine-Android-TabUI Splash Screen Activity






From Project

Back to project page App-Growth-Engine-Android-TabUI.

License

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.

Java Source Code

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;
  }
  
}




Java Source Code List

com.hookmobile.tabui.FriendsAdapter.java
com.hookmobile.tabui.PhoneBookContact.java
com.hookmobile.tabui.PhoneBookContactsActivity.java
com.hookmobile.tabui.PhoneBookContactsAdapter.java
com.hookmobile.tabui.Playable.java
com.hookmobile.tabui.RecommendedContact.java
com.hookmobile.tabui.RecommendedContactsAdapter.java
com.hookmobile.tabui.SmsType.java
com.hookmobile.tabui.TabUIConstants.java
com.hookmobile.tabui.TabUIUtils.java
com.hookmobile.tabui.TabUI.java
com.hookmobile.tabui.sample.MainActivity.java
com.hookmobile.tabui.sample.SplashScreenActivity.java