Android: Creating options menu before it's called
<p>I'm having trouble creating an options menu before I press the menu button. From what I can tell, onCreateOptionsMenu() is called when I press my menu button and the menu is then created. I need to access the menu before my menu button is pressed. </p>

<p>I got the usual so far. An onCreateOptionsMenu() below.</p>

<pre><code>public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.menu, menu);
        return true;
    }
</code></pre>
