Show Custom Menu On Menu Button Click
<p>I have created an Activity that will behave like a popup menu is actually just a list of Menu Items. I then set the theme of the activity on my manifest to "Dialog" to get the popup effect. Now I need this activity to show when the Menu button is pressed on the device. I tried using onCreateOptionsMenu, then passing my Activity XML to the Inflater like so:</p>

<pre><code>    public boolean onCreateOptionsMenu(Menu menu){
    new MenuInflater(this).inflate(R.layout.popup_menu, menu);

    return (super.onCreateOptionsMenu(menu));
}
</code></pre>

<p>"popup_menu" is the XML for my Activity. But this didnt work. Any other suggestions??</p>
