• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

onCreateOptionsMenu(); not picking up required xml file

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic