如何在 Android Studio 的模拟器上启用物理键盘?(曾经工作) [英] How enable physical keyboard on Emulator in Android Studio? (Used to work)

查看:85
本文介绍了如何在 Android Studio 的模拟器上启用物理键盘?(曾经工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定发生了什么变化,但我电脑上的物理键盘不再适用于模拟器(在 Nexus 5、x86 中运行 kitkat).当我在 AVD 中查看设备的高级设置时,没有什么可用于硬件键盘的.这个设置在哪里?

I'm not sure what changed but the physical keyboard from my computer no longer works for the emulator (running kitkat in Nexus 5, x86). When i look in AVD at the device's advanced settings, there's nothing for a hardware keyboard. Where is this setting?

推荐答案

在你的主目录中找到模拟器的配置:

Find the emulator's configuration in your home directory:

//Located in:
~/.android/avd/<The_Device_Name>/config.ini

例如,在 Nexus 5(由 Android Studio 创建)上,它是:

For example, on the Nexus 5 (created by Android Studio), it was:

~/.android/avd/Nexus5.avd/config.ini

将以下设置更改为:

hw.keyboard=yes

这篇关于如何在 Android Studio 的模拟器上启用物理键盘?(曾经工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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