aspose file tools*
The moose likes Android and the fly likes onCreateOptionsMenu(); not picking up required xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "onCreateOptionsMenu(); not picking up required xml file" Watch "onCreateOptionsMenu(); not picking up required xml file" New topic
Author

onCreateOptionsMenu(); not picking up required xml file

Kody Wright
Ranch Hand

Joined: Mar 06, 2011
Posts: 32
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onCreateOptionsMenu(); not picking up required xml file