public void onClickStart(View view) { Intent intent = new Intent(this, QueryActivity.class); GameType gameType = getGameType(); Game game = new Game(gameType); GameParameters.saveGame(intent, game); startActivity(intent); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Intent intent = getIntent(); Game game = GameParameters.getGame(intent); GameUI gui = new GameUI(game); gui.setUp(this); }