title: Calling onCreateOptionsMenu() from multiple views
body: <p>This may be because of my lack of full understanding of how java works. Still learning!</p>
  
  <p>Let's say we have an activity, with onCreate code.</p>
  
  <pre><code>public class GameActivity extends Activity {
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(new GameMainView(this));
      }
  }
  </code></pre>
  
  <p>We've got our view now. My question is this. There are subroutines in both the GameActivity class and the GameMainView class that I want to call using the responses from onCreateOptionsMenu(). How would I get access to both those classes? I know that I could create an abstract class specifically for onCreateOptionsMenu() and have GameActivity and GameMainView override it to perform what they need. Is this the only option? Does onCreateOptionsMenu() only get called once? And if so, where? If I override it all over the place, will they all get executed?</p>