Android Open Source - PokerMachine Splash Screen






From Project

Back to project page PokerMachine.

License

The source code is released under:

Apache License

If you think the Android project PokerMachine 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.eb.poker;
//from  ww  w. j  a v  a  2  s.co  m
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreen extends Activity {
  
  private final int SPLASH_DISPLAY_LENGHT = 3000;
  
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        new Handler().postDelayed(new Runnable(){ 
            @Override 
            public void run() {
                 Intent mainIntent = new Intent(SplashScreen.this, MainMenu.class); 
                 SplashScreen.this.startActivity(mainIntent); 
                 SplashScreen.this.finish(); 
            } 
       }, SPLASH_DISPLAY_LENGHT);
    }
    
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    finish();
  }
}




Java Source Code List

com.eb.poker.About.java
com.eb.poker.Help.java
com.eb.poker.HighScore.java
com.eb.poker.MainMenu.java
com.eb.poker.Play.java
com.eb.poker.PokerEngine.java
com.eb.poker.SplashScreen.java
com.eb.poker.SqlHelper.java
com.eb.poker.VideoPoker.java