AndroidエミュレータのAndroidアプリを実行/テストし、PCキーボードを使用して入力して、入力してテストを速くしたいと思います。私がエミュレータを使用すると、ネイティブのAndroid(オンスクリーン)キーボードからの入力のみを受け入れます。 Androidエミュレータ内で使用するためにPCキーボードを有効にするにはどうすればよいですか?
AndroidエミュレータのAndroidアプリを実行/テストし、PCキーボードを使用して入力して、入力してテストを速くしたいと思います。私がエミュレータを使用すると、ネイティブのAndroid(オンスクリーン)キーボードからの入力のみを受け入れます。 Androidエミュレータ内で使用するためにPCキーボードを有効にするにはどうすればよいですか?
I want to run/test Android apps on the Android emulator and I want to type using my PC keyboard, as it lets me type and test faster. When I use the emulator though, it only accepts input from the native Android (on-screen) keyboard. How can I enable my PC keyboard for use within the Android emulator?
開発者ツールをアップグレードした後も同じ問題がありました(v20.0.0v2012 ...)。 Android仮想デバイスの突然のすべてのものは、私の物理PC / Macキーボードからの入力を受け入れません。
これは私がそれをどのように修正したかです:
9988766655443335
を選択し、<コード> OK yes
この「キーボードサポート」ハードウェアプロパティを追加していない他のAVDは、物理キーボード入力を受け入れません。
I had the same issue after upgrading the developer tools (v20.0.0v2012...). All of a sudden none of my android virtual devices would accept any input from my physical PC/Mac keyboard.
This is how I fixed it:
Window menu
> AVD Manager
Edit
Hardware
, Click New
Keyboard Support
then click OK
yes
My other AVDs that don't have this "keyboard support" hardware property added do NOT accept my physical keyboard input.
以下の設定をしてください。私の環境(ターゲット:Android 4.0.3 - APIレベル15)成功しました。
AVD - 編集 - ハードウェア: - 新... - キーボードサポート - はい
AVD - 編集 - ハードウェア: - 新... - キーボードLIDサポート - いいえ
Please try the following settings. My environment (Target: Android 4.0.3 - API Level 15) successful.
AVD - Edit - Hardware: - New... - Keyboard support - yes
AVD - Edit - Hardware: - New... - Keyboard lid support - no
.androidディレクトリにconfig.iniファイルを変更する必要があります。このファイルはメインのハードドライブディレクトリの下にあります。そこから、AVDファイルを開き、仮想デバイスのリストが表示されます。目的のデバイスを開き、メモ帳でconfig.iniを開きます。次に、このテキストをコピーしてください。 "hw.keyboard = yes"(引用符を引いたもの)、そして保存して閉じます。次回エミュレータを開くときは、キーボードを使用できるはずです。
Config.iniと同じディレクトリにあるハードウェア-qemu.iniファイルを開くこともできます。次に、すべてのハードウェアオプションのリストを表示できます。 hw.keyboardを「いいえ」から「はい」に変更します。
これが助けに役立つことを願っています!
You need to change the config.ini file in your .android directory. This file is found under the main hard drive directory. From there, open the avd file and you will see a list of virtual devices. Open the desired device and then open the config.ini in notepad. Then copy this text: "hw.keyboard = yes" (minus the quotes) and then save and close. The next time you open your emulator, you should be able to use the keyboard.
You can also open up the hardware-qemu.ini file in the same directory as the config.ini and then you can see a list of all the hardware options. Change the hw.keyboard from "no" to "yes".
Hope this helps!
この答えは、ソースからエミュレータを構築した人のためのものです(すなわち、source.android.comからの指示に従って)。次のファイルでプロパティを変更する必要があります。
<事前> <コード> Visual Studio 20100そのファイルの次のセクションでは、デフォルト値をNoからYesに変更します。
<事前> <コード> Visual Studio 20101その後再構築(Makeを使用)。少なくともこれは私のために働いた。
This answer is for those who built the emulator from source (i.e. Following instructions from source.android.com). You need to modify a property in the following file:
external/qemu/android/avd/hardware-properties.ini
In the following section of that file change the default value from no to yes:
# Keyboard support (qwerty/azerty) name = hw.keyboard<br/> type = boolean<br/> default = yes<br/> abstract = Keyboard support<br/> description = Whether the device has a QWERTY keyboard.<br/>
Then rebuild (using make). At least this worked for me.
私は正しい構成を持つにもかかわらず、この問題を持っていて、実際の問題がこの問題
これがあなたの問題であるかどうかを確認するには、スペースを押すと実際にそれらのボタンの1つを押すかどうかを確認し、Tabキーを押すとエミュレータコントロールの要素間のハイライト焦点は正方形を移動します。問題がある場合は、次のように回避できるはずです。
エミュレータのコントロールではなく、メインのAndroidエミュレータウィンドウに戻るはずです。キープレスはAndroidアプリに行くべきです。
I had this issue despite having the correct configuration, and realized that the actual problem was that the focus was on the emulator control buttons windows, as reported in this issue.
To check if this is your problem, see if pressing space actually presses one of those buttons, and if pressing tab moves the highlight focus square between elements in the emulator controls. If that is the problem, then you should be able to work around it as follows:
The focus should now return to the main Android emulator window, not the emulator controls, and key presses should go to Android apps.
ここで説明したように、PCキーボードはAVDエミュレータインスタンスに対して有効にする必要があります。 Android開発者のエミュレータページは、キーコマンドやそのようなものを判断します。 SDK内でPCキーボードの使用状況を有効/無効にする方法が表示されません。あなたの最善の策はSDKを再インストールし、もう一度やり直してください。
As a few have indicated here, the PC keyboard should be enabled for the AVD Emulator instances. Judging by what the emulator page on Android Developer says about key commands and such, it does not appear there is a way to enable/disable PC keyboard usage within the SDK. Your best bet is re-installing the SDK then, and try again.
CTRL + f11 またはnumpad 7 を試してみてください。それはあなたのキーボードを有効にするはずです、他の場所から無効にされない限り。
Try Ctrl + F11 or NumPad 7. That should enable your keyboard, unless is disabled from somewhere else.
<コード> 9988766544332 <コード> 99887666544333 で使用している場合は、次のように<コード> 9988776665544344 を有効にできます。
998877654437
を追加したコード>を選択してから、<コード> 998877666544338 button Hardware
エリアの<コード> 99887766655443310 ボタンをクリックします。 < 9988776654433311
DropDown、<コード> Visual Studio 201012 を選択し、次に<コード> # Keyboard support (qwerty/azerty) name = hw.keyboard<br/> type = boolean<br/> default = yes<br/> abstract = Keyboard support<br/> description = Whether the device has a QWERTY keyboard.<br/> 3 ボタンをクリックします。
If you are using Xamarin.Android
in Visual Studio 2010
, you can enable Keyboard Support
as follows:
Tools > Start Android Emulator Manager
AVD Name
that you want to add Keyboard Support
for, then click the Edit
buttonHardware
area, click the New
buttonProperty
dropdown, select Keyboard support
, then click the OK
buttonKeyboard support
Property
is added to the Hardware
list. Change the Value
from No
to Yes
Edit AVD
button© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有