Cant resolve CheatActivity.newIntent()


#1

While using the following code to make cheatButton work Cheat.newIntent isnt recognised and cant be resolved. What am I missing ? Any help would be appreciated. Thanks

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);

        }
    });

#2

newIntent is a method that you create in the CheatActivity class. Make sure you have created that method.