I want to display the same options menu for all my applications. I created a general operation that implements the menu, and all my further actions expand it.
Problem: when I need to extend other specific actions, such as ListActivity and MapActivity, I cannot figure out how to extend the general activity and add List or Map behavior to a new class. To solve this problem, I had to create three different common actions, each of which extends Activity, ListActivity and MapActivity.
I tried to create an abstract activity, but it does not work, I will need to extend two classes at the same time. I could try the interfaces, but since I cannot implement the methods, I would have to embed a menu implementation in all second level classes, right?
source
share