i have main activity in which i have Four menus. and i have one SipSetting class which extends PreferenceActivity in which i have four fields.now when i am in this SipSetting class, On clicking on menu button menu does not popups? how to open that menu within this class?
Share
You should override
onCreateOptionsMenu(Menu)in everyActivityand inflate appropriate menu there. This menu could be shared among different activities, i.e. you may inflate same menu for several activities. Remember, that you would also need to overrideonOptionsItemSelected(MenuItem)in everyActivity.Is that what you asked about?