<small id='nopRW'></small><noframes id='nopRW'>

  1. <i id='nopRW'><tr id='nopRW'><dt id='nopRW'><q id='nopRW'><span id='nopRW'><b id='nopRW'><form id='nopRW'><ins id='nopRW'></ins><ul id='nopRW'></ul><sub id='nopRW'></sub></form><legend id='nopRW'></legend><bdo id='nopRW'><pre id='nopRW'><center id='nopRW'></center></pre></bdo></b><th id='nopRW'></th></span></q></dt></tr></i><div id='nopRW'><tfoot id='nopRW'></tfoot><dl id='nopRW'><fieldset id='nopRW'></fieldset></dl></div>

        <bdo id='nopRW'></bdo><ul id='nopRW'></ul>

      <tfoot id='nopRW'></tfoot><legend id='nopRW'><style id='nopRW'><dir id='nopRW'><q id='nopRW'></q></dir></style></legend>
    1. Android 模拟器不接受键盘输入 - SDK 工具 rev 20

      时间:2023-08-29
      <legend id='yYL8t'><style id='yYL8t'><dir id='yYL8t'><q id='yYL8t'></q></dir></style></legend>

          • <i id='yYL8t'><tr id='yYL8t'><dt id='yYL8t'><q id='yYL8t'><span id='yYL8t'><b id='yYL8t'><form id='yYL8t'><ins id='yYL8t'></ins><ul id='yYL8t'></ul><sub id='yYL8t'></sub></form><legend id='yYL8t'></legend><bdo id='yYL8t'><pre id='yYL8t'><center id='yYL8t'></center></pre></bdo></b><th id='yYL8t'></th></span></q></dt></tr></i><div id='yYL8t'><tfoot id='yYL8t'></tfoot><dl id='yYL8t'><fieldset id='yYL8t'></fieldset></dl></div>
            • <bdo id='yYL8t'></bdo><ul id='yYL8t'></ul>

                <small id='yYL8t'></small><noframes id='yYL8t'>

                  <tbody id='yYL8t'></tbody>

              1. <tfoot id='yYL8t'></tfoot>
                本文介绍了Android 模拟器不接受键盘输入 - SDK 工具 rev 20的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我已将 SDK 工具升级到修订版 20(从 18 版),升级后,模拟器似乎不接受来自笔记本电脑键盘的输入.但只能使用模拟器自己的软"键盘(当输入字段被聚焦时出现).

                I've upgraded the SDK tools to revision 20 (from 18) and since the upgrade, the emulator doesn't seem to accept input from laptop's keyboard. But only using the emulator's own 'soft' keyboard (that appears when an input field is focused).

                我尝试重新安装 SDK 工具(以及整个 SDK),卸载并重新安装 Eclipse Android 插件,重新创建模拟器设备.但这些似乎都没有帮助,它让我发疯.使用笔记本电脑的触控板键入是没有希望的.

                I've tried reinstalling the SDK tools (and the whole SDK for that matter), uninstalled and reinstalled Eclipse Android plugins, re-created emulator devices. But none of that seem to help and its driving me mad. Its hopeless to key-in using a laptop's trackpad.

                有人遇到过这个问题吗?

                Has anyone encountered this problem?

                推荐答案

                更新

                从 SDK rev 21 开始,Android 虚拟设备管理器具有改进的 UI,可以解决此问题.我在下面突出显示了一些更重要的配置设置:

                As of SDK rev 21 the Android Virtual Device Manager has an improved UI which resolves this issue. I have highlighted some of the more important configuration settings below:

                如果您发现模拟器中缺少软(基于屏幕的)主键 BackHome 等,您可以设置 hw.mainKeys=no 来启用它们.

                If you notice that the soft (screen-based) main keys Back, Home, etc. are missing from your emulator you can set hw.mainKeys=no to enable them.

                原答案

                尽管开发人员文档说默认启用键盘支持,但在 SDK rev 20 中似乎并非如此.我在模拟器的 config.ini 文件中明确启用了键盘支持并且有效!

                Even though the developer documentation says keyboard support is enabled by default it doesn't seem to be that way in SDK rev 20. I explicitly enabled keyboard support in my emulator's config.ini file and that worked!

                添加:hw.keyboard=yes

                收件人:~/.android/avd/.avd/config.ini

                同样,如果您希望使用箭头键导航应用程序列表,请添加 hw.dPad=yes.

                Similarly, add hw.dPad=yes if you wish to use the arrow-keys to navigate the application list.

                参考:http://developer.android.com/tools/devices/managing-avds-cmdline.html#hardwareopts

                在 Mac OS 和 Linux 上,您可以使用一个终端命令编辑所有模拟器配置:

                On Mac OS and Linux you can edit all of your emulator configurations with one Terminal command:

                for f in ~/.android/avd/*.avd/config.ini;做 echo 'hw.keyboard=yes' >>"$f";完成

                在相关说明中,如果您的平板电脑模拟器缺少 BACK/HOME 按钮,请尝试在 AVD 编辑器中选择 WXGA800 作为内置皮肤:

                On a related note, if your tablet emulator is missing the BACK/HOME buttons, try selecting WXGA800 as the Built-in skin in the AVD editor:

                或者通过在 config.ini 中手动设置皮肤:

                Or by manually setting the skin in config.ini:

                skin.name=WXGA800
                skin.path=platforms/android-16/skins/WXGA800
                

                (以 API 16 为例)

                (example is for API 16)

                这篇关于Android 模拟器不接受键盘输入 - SDK 工具 rev 20的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:错误“与 adb 的连接已关闭,出现严重错误.&quo 下一篇:如何修复:“HAX 不工作,模拟器在模拟模式下运行

                相关文章

                最新文章

                1. <small id='GRcUz'></small><noframes id='GRcUz'>

                  • <bdo id='GRcUz'></bdo><ul id='GRcUz'></ul>

                  1. <tfoot id='GRcUz'></tfoot>
                  2. <legend id='GRcUz'><style id='GRcUz'><dir id='GRcUz'><q id='GRcUz'></q></dir></style></legend>
                    <i id='GRcUz'><tr id='GRcUz'><dt id='GRcUz'><q id='GRcUz'><span id='GRcUz'><b id='GRcUz'><form id='GRcUz'><ins id='GRcUz'></ins><ul id='GRcUz'></ul><sub id='GRcUz'></sub></form><legend id='GRcUz'></legend><bdo id='GRcUz'><pre id='GRcUz'><center id='GRcUz'></center></pre></bdo></b><th id='GRcUz'></th></span></q></dt></tr></i><div id='GRcUz'><tfoot id='GRcUz'></tfoot><dl id='GRcUz'><fieldset id='GRcUz'></fieldset></dl></div>