Need help with menu option.

I'm trying to make a simple menu in my program but I've suffering from a problem which prevented my program to run.

here is my code:

Code:
package de.vogella.android.menuitem;

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






public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        super.onCreateOptionsMenu(menu); 
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.game_menu, menu);
        return true;
    }
}
the error is at this line :

Code:
inflater.inflate(R.[B]menu[/B].game_menu, menu);
it says menu cannot be resolved or it's not a field.

can you guys please help me ? thnx in advance.
 
Top