@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_hunter_result); new ToolbarSetter(this); playerData = (PlayerData) this.getIntent() .getExtras() .getSerializable(GameSettings.HUNTER_GAME_PLAYER_TO_RESULT_TAG); gameData = (GameData) this.getIntent().getExtras().getSerializable(GameSettings.HUNTER_GAME_TO_RESULT_TAG); try { Results.setForHunter(gameData, playerData); } catch (RestException e) { e.printStackTrace(); e.getErrorAlert(this).show(); } TextView result = (TextView) findViewById(R.id.results2TextView); if (gameData.getStatus().equals(GameStatus.CHASE_WINS)) { result.setText("You LOSE!\n There were some chases still alive.."); } else { result.setText("You WIN!\n All chases are dead!"); } }