CrimeActivity Error


#1

Here is my code for CrimeActivity, I have 3 errors. It seems to complain about fragmentContainer; is that a class we built? I have activity_crime.xml so I don’t know why it doesn’t like that either.

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

import android.os.Bundle;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.R;

import criminalintent.android.bignerdranch.com.criminalintent.CrimeFragment;

public class CrimeActivity extends FragmentActivity {
/** Called when the activity is first created. */

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_crime); //ERROR: cannot resolve symbol activity_crime
    FragmentManager manager = getSupportFragmentManager();
    Fragment fragment = manager.findFragmentById(R.id.fragmentContainer); //ERROR: cannot resolve symbol fragmentContainer

    if (fragment == null) {
        fragment = new CrimeFragment();
        manager.beginTransaction()
                .add(R.id.fragmentContainer, fragment) //ERROR: cannot resolve symbol fragmentContainer
                .commit();
    }
}

}[/code]

Thanks