title: Android - Show Toast or Other Behaviour when menu button clicked
body: <p>I'd like to be able to show a toast or dialog or other options instead of displaying a menu sometimes, if the menu button is pressed.</p>
  
  <p>I tried this, but of course it doesn't work since onCreateOptionsMenu is called when the Activity is first loaded, not when the Menu key is disabled. Is there any way to do what I'm trying to do?</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
     if (disableMenu())
        Toast.makeText(this, R.string.no_menu_for_you, Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>edit: I added the .show() so that people wouldn't focus on that part. This is not what's causing the issue.</p>