0

This is driving my insane. I am inflating a layout using the following:

public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater menuInflater = getMenuInflater();
    menuInflater.inflate(R.layout.location_menu, menu);
    return true;
}

When i modify the location_menu.xml file however and re-install the app nothing changes on the menu?!?

I can even completely delete the contents of the file and it makes no difference. The file is not duplicated in my project and I have searched the project and there are no other occurances of for example the name headings of the menus of icon references.

Im thoroughly confused what is going on please help

EHarpham
  • 602
  • 1
  • 17
  • 34

1 Answers1

0

This has happened to me a few times. If you're using Eclipse, try cleaning the project. This forces it to regenerate the R.java file and removes all cached files.

J David Smith
  • 4,780
  • 1
  • 19
  • 24