Nothing in the Folder "gen"


#1

I can not find the file R.java. In fact there seems to be no subfolders in the folder gen. I think I set up something wrong, but I can not figure it out. Please help.


#2

Can you post your QuizActivity.java?

What package did you give the application?


#3

Here is my code:

package com.bignerdranch.android.geoquiz;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class QuizActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_quiz);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.quiz, menu);
		return true;
	}
}

Thanks for your help!


#4

That can’t be all the code in QuizActivity.java
You need to add all the code in the chapter.