Android Open Source - memorygame New Game






From Project

Back to project page memorygame.

License

The source code is released under:

MIT License

If you think the Android project memorygame 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.gustavoparreira.realtimetile;
/*from w w w . ja  va 2s  . c  o  m*/
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutCompat;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.view.ViewGroup.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.TableLayout;
import android.widget.TableRow;


public class NewGame extends ActionBarActivity {

    Game game;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_game);
        SharedPreferences sp = getSharedPreferences("values", Context.MODE_PRIVATE);
        String nickname = sp.getString("nickname", "");

        game = new Game(this, nickname);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        game.close();
    }
}




Java Source Code List

com.gustavoparreira.realtimetile.ApplicationTest.java
com.gustavoparreira.realtimetile.Game.java
com.gustavoparreira.realtimetile.JoinGame.java
com.gustavoparreira.realtimetile.MainMenu.java
com.gustavoparreira.realtimetile.NewGame.java
com.gustavoparreira.realtimetile.Player.java
com.gustavoparreira.realtimetile.Tile.java