Tek Eye Logo

Tek Eye

Android Emulator Key Mapping

The Android Software Development Kit (SDK) provides the Android emulator. The emulator is used to configure an Android Virtual Device (AVD). This allows an Android hardware configuration to be created that a developer may not own. This ensures a developer can test an App so it performs well on the wide range of Android devices that may run it. After all a developer may only own a few physical devices. For an introduction on configuring an AVD see the Tek Eye article Set Up an AVD for App Testing.

AVDs Running

With the release of Android Studio 2.0 the emulator was given an overhaul. This included a new interface when running and changing configuration options. Unfortunately most of the previous keyboard shortcuts have changed. The use of keysets to configure keyboard shortcuts has been made obsolete. The Android Developers website used to provide an Android AVD keyboard mapping table but it is no longer available. The new AVD keyboard shortcuts are buried in the Help section of the emulators Extended Controls (the ellipsis on the control bar).

AVD Ellipsis Button

Once the AVD is running it can be controlled by the mouse and/or keyboard. The keyboard can be used for App input (e.g. when a TextView is displayed). AVD shortcuts are shown below, to see all the AVD key mapping short cuts open the emulator help dialog (F1).

AVD Running with Control Bar

If an App being tested on an AVD needs to process the same shortcuts as used by the AVD, then the emulator can be configured to send the shortcuts through to the AVD. See the options under settings in the AVD's Extended Controls.

AVD Settings

When an AVD is running and has focus, typing on the PC keyboard will be registered by Android. However, the keyboard input can be turned off. When an AVD is created, or modified, in the AVD Manager the Advanced Settings option has an Enable keyboard input check box. Clearing the check box stops PC keyboard input to the AVD. However, the shortcut commands (above) still work.

Comments

Amish on 26th Oct. 2021 at 08:58 said: How do you play PUBG on Android Emulator with keymapping?

Tek Eye on 26th Oct. 2021 at 20:54 said: The GameLoop emulator supports PUBG, it has an options to customise settings (keys and graphics). GameLoop has a Facebook page for support.

Author:  Published:  Updated:  

ShareSubmit to TwitterSubmit to FacebookSubmit to LinkedInSubmit to redditPrint Page

Do you have a question or comment about this article?

(Alternatively, use the email address at the bottom of the web page.)

 This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

markdown CMS Small Logo Icon ↓markdown↓ CMS is fast and simple. Build websites quickly and publish easily. For beginner to expert.


Articles on:

Android Programming and Android Practice Projects, HTML, VPS, Computing, IT, Computer History, ↓markdown↓ CMS, C# Programming, Using Windows for Programming


Free Android Projects and Samples:

Android Examples, Android List Examples, Android UI Examples



Tek Eye Published Projects