Android Open Source - Stone-Paper-Scizzors Final End






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;
//from   ww  w  .ja  va2  s .c o  m
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class FinalEnd extends Activity {

  @Override
  public void onBackPressed() {
    // TODO Auto-generated method stub
    super.onBackPressed();
    System.exit(0);
  }

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.end);
    
    Button Play_Again = (Button) findViewById(R.id.buttonPA);
    Button Quit_Game = (Button) findViewById(R.id.buttonQG);
    
    Play_Again.setOnClickListener(new View.OnClickListener() {
      
      @Override
      public void onClick(View v) {
        // TODO Auto-generated method stub
        startActivity(new Intent("com.example.stone.paper.scizzors.STORE"));
      }
    });
    
    Quit_Game.setOnClickListener(new View.OnClickListener() {
      
      @Override
      public void onClick(View v) {
        // TODO Auto-generated method stub
        finish();
        System.exit(0);
      }
    });
    
    {
      
      
  }
  }
}




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