Big Nerd Android GeoQuiz - answer not passed to CheatActivity : <p>I'm working on Big Nerd Android GeoQuiz Application, chapter 5.
The correct solution is not passed to CheatActivity.</p>

<p>This is cheat activity:</p>

<pre><code>public class CheatActivity extends AppCompatActivity {
private static final String EXTRA_ANSWER_IS_TRUE = "org.mydomain.geoquiz.answer_is_true";

private boolean mAnswerIsTrue;
private TextView mAnswerTextView;
private Button mShowAnswerButton;


@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_cheat);

    mAnswerIsTrue = getIntent().getBooleanExtra("EXTRA_ANSWER_IS_TRUE", false);

    mAnswerTextView = (TextView) findViewById(R.id.answer_text_view);

    mShowAnswerButton = (Button) findViewById(R.id.show_answer_button);
    mShowAnswerButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            if (mAnswerIsTrue) {
                mAnswerTextView.setText(R.string.true_button);
            } else {
                mAnswerTextView.setText(R.string.false_button);
            }
        }
    });


}

public static Intent newIntent(Context packageContext, boolean answerIsTrue) {
    Intent intent = new Intent(packageContext, CheatActivity.class);
    intent.putExtra(EXTRA_ANSWER_IS_TRUE, answerIsTrue);
    return intent;
}
</code></pre>

<p>}</p>

<p>And it gets called by Quiz activity:</p>

<pre><code>        mCheatButton = (Button) findViewById(R.id.cheat_button);
    mCheatButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            boolean answerIsTrue = mQuestionBank[mCurrentIndex].isAnswerTrue();
            Intent intent = CheatActivity.newIntent(QuizActivity.this, answerIsTrue);
            startActivity(intent);
        }
    });
</code></pre>

<p>Using the debugger I see that the correct value is passed. 
But in cheat activity when I set mAnswerIsTrue, it is always set as false.
What am I doing wrong?</p>

<p>Thanks.</p>
