title: Show menu on button click in android
body: <p>I just want the normal menu which gets displayed on clicking the settings button in android phone instead with Virtual Button Click. I tried <code>openOptionsMenu();</code> but it didn't help. I hope you understand the problem here: I want for example default "setting" option displayed which we see when I click on button in actionbar but this time I have action bar hidden so I have a button which I want to display the menu on Clicking that button. </p>
  
  <pre><code>button.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          openOptionsMenu();
      }
  });
  </code></pre>