Example #1
0
  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);
  }
Example #2
0
 @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);
 }