Updating Controller Layer multiple Errors


#1

I am on page 39 and when i updated the controller layer i get multiple errors.

docs.google.com/file/d/0B6BgdJC … sp=sharing

I get this error for the TrueFalse Array
Multiple markers at this line
- TrueFalse cannot be resolved to a
type

And TrueFalse cannot be resolved to a type
int question = mQuestionBank[mCurrentIndex].getQuestion();

[code]package com.bignerdranch.android.geoquiz;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class QuizActivity extends Activity {

private Button mTrueButton;
private Button mFalseButton;
private Button mNextButton;
private TextView mQuestionTextView;

private TrueFalse[] mQuestionBank = new TrueFalse[] {
		new TrueFalse(R.string.question_oceans, true),
		new TrueFalse(R.string.question_mideast, false),
		new TrueFalse(R.string.question_africa, false),
		new TrueFalse(R.string.question_americas, false),
		new TrueFalse(R.string.question_asia, true),
};

private int mCurrentIndex = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_quiz);
    
    mQuestionTextView = (TextView)findViewById(R.id.question_text_view);
    int question = mQuestionBank[mCurrentIndex].getQuestion();
    mQuestionTextView.setText(question);
    
    mTrueButton = (Button)findViewById(R.id.true_button);
    mTrueButton.setOnClickListener(new View.OnClickListener() {
    	@Override
    	public void onClick(View v) {
    		Toast.makeText(QuizActivity.this, R.string.correct_toast, Toast.LENGTH_SHORT).show();
    	}
    });
    mFalseButton = (Button)findViewById(R.id.false_button);
    mFalseButton.setOnClickListener(new View.OnClickListener() {
    	@Override
    	public void onClick(View v) {
    		Toast.makeText(QuizActivity.this, R.string.incorrect_toast, Toast.LENGTH_SHORT).show();
    	}
    });
    
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.quiz, menu);
    return true;
}

}
[/code]


#2

I found the problem.
I deleted or forgot to create the TrueFalse.java class.
Now that i created it it should work.