Android Open Source - Stone-Paper-Scizzors Initial Choice






From Project

Back to project page Stone-Paper-Scizzors.

License

The source code is released under:

Apache License

If you think the Android project Stone-Paper-Scizzors 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.example.stone.paper.scizzors;
//ww  w .  j  a  va2 s. c om
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class InitialChoice extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.initial);
    Thread timer = new Thread() {
      @Override
      public void run() {
        try{
          sleep(3000);
          startActivity(new Intent("com.example.stone.paper.scizzors.STORE"));
          finish();
        } catch(InterruptedException e){
          e.printStackTrace();
        } 
      }
    };
    timer.start();
  }
}




Java Source Code List

com.example.stone.paper.scizzors.FinalEnd.java
com.example.stone.paper.scizzors.InitialChoice.java
com.example.stone.paper.scizzors.MainActivity.java
com.example.stone.paper.scizzors.Store.java