Source:
<code>private void updateScenario() { if (ScenarioOverActivity.scenarioActivityDone == 1) { ScenarioOverActivity.scenarioOverActivityInstance.finish(); } if (mScene != null) { mPrevScene = mDbHandler.getScenarioFromID(mScene.getId()); } mScene = mDbHandler.getScenario(); if (mScene.getReplayed() == 0) { mGoToMap.setAlpha((float) 1.0); mGoToMap.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SessionHistory.totalPoints -= SessionHistory.currScenePoints; mGoToMap.setClickable(false); Intent myIntent = new Intent(GameActivity.this, MapActivity.class); myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivityForResult(myIntent, 0); mDbHandler.setReplayedScenario(mScene.getScenarioName()); mGoToMap.setAlpha((float) 0.0); mReplay.setAlpha((float) 0.0); } }); mReplay.setAlpha((float) 1.0); mReplay.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SessionHistory.totalPoints -= SessionHistory.currScenePoints; mReplay.setClickable(false); Intent myIntent = new Intent(GameActivity.this, GameActivity.class); myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivityForResult(myIntent, 0); mDbHandler.setReplayedScenario(mScene.getScenarioName()); mGoToMap.setAlpha((float) 0.0); mReplay.setAlpha((float) 0.0); } }); } if (mPrevScene != null && mPrevScene.getCompleted() == 1) { if (mScene.getNextScenarioId() == -1) { Intent myIntent = new Intent(GameActivity.this, GameOverActivity.class); finish(); <START> startActivityForResult(intent, 0); <END> } else { SessionHistory.currSessionId = mScene.getNextScenarioId(); Intent intent = new Intent(GameActivity.this, ScenarioOverActivity.class); intent.putExtra(String.valueOf(R.string.scene), mPrevScene.getScenarioName()); startActivity(intent); } } SessionHistory.currQId = mScene.getFirstQuestionId(); mScenarioNameTextView.setText(mScene.getScenarioName()); updateQA(); }</code><technical_language>change intent myIntent</technical_language>

Target:
private void updateScenario() { if (ScenarioOverActivity.scenarioActivityDone == 1) { ScenarioOverActivity.scenarioOverActivityInstance.finish(); } if (mScene != null) { mPrevScene = mDbHandler.getScenarioFromID(mScene.getId()); } mScene = mDbHandler.getScenario(); if (mScene.getReplayed() == 0) { mGoToMap.setAlpha((float) 1.0); mGoToMap.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SessionHistory.totalPoints -= SessionHistory.currScenePoints; mGoToMap.setClickable(false); Intent myIntent = new Intent(GameActivity.this, MapActivity.class); myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivityForResult(myIntent, 0); mDbHandler.setReplayedScenario(mScene.getScenarioName()); mGoToMap.setAlpha((float) 0.0); mReplay.setAlpha((float) 0.0); } }); mReplay.setAlpha((float) 1.0); mReplay.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SessionHistory.totalPoints -= SessionHistory.currScenePoints; mReplay.setClickable(false); Intent myIntent = new Intent(GameActivity.this, GameActivity.class); myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivityForResult(myIntent, 0); mDbHandler.setReplayedScenario(mScene.getScenarioName()); mGoToMap.setAlpha((float) 0.0); mReplay.setAlpha((float) 0.0); } }); } if (mPrevScene != null && mPrevScene.getCompleted() == 1) { if (mScene.getNextScenarioId() == -1) { Intent intent = new Intent(GameActivity.this, GameOverActivity.class); finish(); startActivityForResult(intent, 0); } else { SessionHistory.currSessionId = mScene.getNextScenarioId(); Intent intent = new Intent(GameActivity.this, ScenarioOverActivity.class); intent.putExtra(String.valueOf(R.string.scene), mPrevScene.getScenarioName()); startActivity(intent); } } SessionHistory.currQId = mScene.getFirstQuestionId(); mScenarioNameTextView.setText(mScene.getScenarioName()); updateQA(); }