Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How enable physical keyboard on Emulator in Android Studio? (Used to work)

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?

like image 531
Don Rhummy Avatar asked Nov 25 '14 21:11

Don Rhummy


People also ask

How do I enable physical keyboard on Android?

Navigate to your device Settings. Tap on General management. Tap on Language and input. Tap on Physical keyboard.

Can I use keyboard on emulator?

Open Android Virtual Device Manager. Click the 'Pencil icon' align with the selected Emulator. (A dialog will popup) Select Show Advance Settings button. Find 'Enable Keyboard Input' and ensure it's selected.

Can't type in Android emulator?

By default, the soft keyboard may not appear on the emulator. If you want to test with the soft keyboard, be sure to open up the Android Virtual Device Manager ( Tools => Android => AVD Manager ) and uncheck "Enable Keyboard Input" for your emulator. Now restart the emulator.

What type of keyboard and buttons do the Android emulators have?

What type of keyboard and buttons do the Android emulators have? ​ Android Emulators have software buttons and a hardware keyboard. In a regular Android emulator the device buttons are software buttons displayed on the right size of the emulator.

How to enable keyboard input on Android Studio virtual devices?

In the advanced settings of a virtual device in Android Studio 1.0.2 AVD Manager, there is actually a checkbox that allows to enable keyboard input without editing the config.ini by hand. Tools → Android → AVD Manager → pencil icon (shown in picture) → Show Advanced Settings (scroll to bottom) → Enable Keyboard Input

Is there a way to enable PC keyboard on Android emulator?

As a few have indicated here, the PC keyboard should be enabled for the AVD Emulator instances. Judging by what the emulator page on the Android Developer website says about key commands and such, it does not appear there is a way to enable/disable PC keyboard usage within the SDK.

How do I enable physical keyboard on my Android phone?

On your phone, go to Settings and then the System page. Scroll down until you find the section entitled “OTG storage,” and turn on the option. When you connect the USB OTG cable to the physical keyboard, you will be able to use the keyboard to type on your phone. How do I enable physical keyboard? To enable the screen keyboard, follow these steps:

How do I run an emulator in Android Studio?

If you want to run the emulator in a separate window, go to File > Settings > Tools > Emulator (Android Studio > Preferences > Tools > Emulator on macOS) and deselect Launch in a tool window. Emulators work well for development purposes.


2 Answers

In the advanced settings of a virtual device in Android Studio 1.0.2 AVD Manager, there is actually a checkbox that allows to enable keyboard input without editing the config.ini by hand.

Tools → Android → AVD Manager → pencil icon (shown in picture) → Show Advanced Settings (scroll to bottom) → Enable Keyboard Input

enter image description here

like image 92
carine Avatar answered Oct 19 '22 02:10

carine


Find the emulator's configuration in your home directory:

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

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

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

Change the below setting to be:

hw.keyboard=yes 
like image 41
Don Rhummy Avatar answered Oct 19 '22 04:10

Don Rhummy