• Post Reply Bookmark Topic Watch Topic
  • New Topic

onCreateOptionsMenu(); not picking up required xml file

Kody Wright
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

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

Thank you for your time!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!