Sharing an Options Menu between Activity and MapActivity.
Is this possible?
I have an Options Menu shared between multiple Activities but now I need that menu in a MapActivity.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Define the menu in XML. Put the smarts to load that XML in a static method, then call that method from
onCreateOptionsMenu()in your various classes. Put the smarts foronOptionsItemSelected()in another static method, and call that method fromonOptionsItemSelected()in your various classes.