Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dealing with Android devices without MENU key

Tags:

android

menu

I'm told by some users that my Android app is not usable because their device does not have a MENU key.

What's the best way to deal with these devices? Is it possible to detect if the device lack a MENU key and show a menu button only in this case?

And most importantly, how do you test this in the simulator?

Thanks.

Edit: Apparently the problem was that the users didn't know that the Menu key was called the Menu key.

Edit: Also, some unofficial Android devices like the Eken and aPad don't have a physical menu key.

like image 868
hpique Avatar asked Jun 04 '10 08:06

hpique


People also ask

Where is menu key on Samsung phone?

The Left H/W touch key in older models of Samsung Android phones is using it as menu key.

Where is menu on my Samsung?

Press and hold the dedicated task manage button. ( situated in the area below your screen, to the left of your home button ). Keep it pressed for about 1 second and the menu will appear.


1 Answers

Starting with Android 3.0 (API level 11), devices are not required to have a dedicated Menu button. (Read more about this here: http://developer.android.com/guide/topics/ui/menus.html)

This means you should provide another way for your users to activate the menu. You can create a button and call openOptionsMenu(); when it is pressed.

like image 199
Sandy Avatar answered Nov 04 '22 19:11

Sandy