I am trying an option menu in a class that extends ListAcitivity. How do I add an option menu to this activity, so when I click on the option button an options menu appears at the bottom of the screen.
I searched online but most tutorials refer to this function onCreateOptionsMenu() which is part of Activity class and it does not seem to work in the subclass of ListActivity.
It is Java.
ListActivity(and anything that extends it) inherits all of the features and functions ofActivity.Therefore, just overriding
onCreateOptionsMenuwill work the same.Boilerplate code:
🙂