my app has two activities, but for some reason my menu item from the first activity is being added to the menu in the second activity.
first activity is just a view with four buttons and an "exit" button in the menu. Once one of the four main buttons are pressed I start the second activity which displays data in a scrollview and has a bunch of menu options (save, clear, goback, email). I made 2 different menu (mainmenu.xml and menu.xml) xml files. One for each activity and I call them each using similar code in each activity using the menu inflator method. For some reason "exit" is showing up at the top of my second activities menu. I triiple checked and I did not accidentally add it to the second acivities menu xml or code.
I also tried menu.clear() before creating the second menu and that just made it have no menu. Anyone know how to properly handle menus in a multi activity app?
I looked here, but still did not find an answer: http://developer.android.com/guide/prac ... esign.html
Thanks for any help!