与Android设备的处理没有MENU键 [英] Dealing with Android devices without MENU key

查看:307
本文介绍了与Android设备的处理没有MENU键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被一些网友认为我的Andr​​oid应用程序不可用告诉,因为他们的设备没有菜单键。

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?

感谢。

修改:很显然的问题是,用户不知道菜单键被称为菜单键

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

修改:另外,像额肯和APAD一些非官方的Andr​​oid设备没有物理菜单键

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

推荐答案

我很惊讶,因为在我的评论说有没有一个<大骨节病>菜单关键设备在那里。

I'm quite surprised that there are devices without a Menu key out there, as stated in my comment.

由于此最近的问题提到了,确实没有任何API规定检测这个:
<一href="http://stackoverflow.com/questions/2957168/programatically-detect-if-an-android-phone-have-hard-keys-or-soft-keys">http://stackoverflow.com/questions/2957168/programatically-detect-if-an-android-phone-have-hard-keys-or-soft-keys

As this recent question mentions, there isn't really any API provision for detecting this:
http://stackoverflow.com/questions/2957168/programatically-detect-if-an-android-phone-have-hard-keys-or-soft-keys

这也似乎是有,你可以模拟使用AVD没有菜单键硬件选项:
http://developer.android.com/guide/developing/tool​​s/avd html的#hardwareopts

It would also seem that there is no "menu key" hardware option that you can emulate using an AVD:
http://developer.android.com/guide/developing/tools/avd.html#hardwareopts

这篇关于与Android设备的处理没有MENU键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆