Are your imports listed?

import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

On Mar 20, 12:46 am, Matt Clark <mrclark32...@gmail.com> wrote:
> I tried using the MenuInflation off of the android developers site:
>
> @Override
> public boolean onCreateOptionsMenu(Menu menu) {
>     MenuInflater inflater = getMenuInflater();
>     inflater.inflate(R.menu.game_menu, menu);
>     return true;
>
> }
>
> with an xml in the res/meno directory by the name of game_menu.
>
> when I try to compile this, i get an error saying that the symbol
> 'menu' on line
> inflater.inflate(R.menu.game_menu, menu);
> can not be found.
>
> I have all of my imports set, the code shows no errors, just will not
> compile.
>
> Any and all help is greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to