@Override public void onResume() { questionImageTextView.setText(curQuestion.getQuestionText()); questionImageView.setImageResource(curQuestion.getImageId()); super.onResume(); }
public boolean isAnswerCorrect() { String curAnswer = answerEditText.getText().toString(); return curAnswer.equalsIgnoreCase(curQuestion.getAnswer()); }