1

How can I display a menu in my application when I don't have a hardware menu button on my phone and when I hide the titlebar?

Phil
  • 583
  • 4
  • 7
  • 19
  • The usage of menu is deprecated since 3.0, use an [ActionBar](http://developer.android.com/guide/topics/ui/actionbar.html) instead. – Thibault D. Apr 27 '13 at 10:02
  • The problem is, my minSDKVersion is 8, so I can't use ActionBar – Phil Apr 27 '13 at 10:08
  • How about using the support library ? or http://stackoverflow.com/questions/10867617/how-do-i-use-the-actionbar-on-older-versions-of-android ? – Thibault D. Apr 27 '13 at 10:10

1 Answers1

2

To answer to your question: you can open the menu programmatically using openOptionsMenu().

However, you probably should include a ActionBar instead, as suggested in the comments.

TomTasche
  • 5,448
  • 7
  • 41
  • 67