Android Open Source - Tic-Tac-Toe Tic Tac Toe Activity






From Project

Back to project page Tic-Tac-Toe.

License

The source code is released under:

MIT License

If you think the Android project Tic-Tac-Toe 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.comp1008.AmmanVedi.TicTacToe;
//from  w w w .j a  v a  2s . c o m
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;

public class TicTacToeActivity extends Activity {
  
  //private Context cxt = this;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    
    setContentView(R.layout.activity_tic_tac_toe);
    getWindow().setBackgroundDrawableResource(R.drawable.bg);
    
    //load the next view after 5 seconds
    
      
        super.onCreate(savedInstanceState);    
    new java.util.Timer().schedule( 
            new java.util.TimerTask() {
                @Override
                public void run() {
                    go();

                }
            }, 
            5000 
    );

      }
  

  public void go()
  {
  
  Intent intent = new Intent(this, SplashScreen.class);
  System.out.println("here");
  startActivity(intent);
  }


  }




Java Source Code List

com.comp1008.AmmanVedi.TicTacToe.AIDrawView.java
com.comp1008.AmmanVedi.TicTacToe.AIPlayer.java
com.comp1008.AmmanVedi.TicTacToe.DifficultySelect.java
com.comp1008.AmmanVedi.TicTacToe.DrawView.java
com.comp1008.AmmanVedi.TicTacToe.GameState.java
com.comp1008.AmmanVedi.TicTacToe.HighScores.java
com.comp1008.AmmanVedi.TicTacToe.SplashScreen.java
com.comp1008.AmmanVedi.TicTacToe.TicTacToeActivity.java
com.comp1008.AmmanVedi.TicTacToe.Tuple.java