onCreateOptionsMenu(); not picking up required xml file
posted 3 years ago
I am working my way through the book "Teach Yourself Android Application Development in 24 hours", and am currently on hour 8. I've run across a slight problem that I can't seem to figure out.
I am trying to use the onCreateOptionsMenu method to display an options menu in a particular activity. I am trying to load the gameoptions.xml file, located in the "/res/menu" folder. For whatever reason, it is not recognizing that there is a file there by that name and subsequently not seeing the two items I have stored in it. I'll post the code below so you can see exactly what I'm doing.
I have restarted eclipse and tried renaming the files in an effort to fix the problem, but it still shows as an error. Could this be an eclipse problem rather than a code problem?
...and here is the xml file itself, gameoptions.xml