Setting up the Android Emulator

The Android SDK provides a virtual mobile device emulator that you can prototype, test, and develop Android applications without the need for a physical device.

The Android tools team introduced OpenGL support in Android 4.0.3r2. This has allowed us to support the emulator in the ArcGIS Runtime SDK for Android.

Manage Android Virtual Devices with AVD Manager

Graphics acceleration for the emulator takes advantage of the graphics processing unit (GPU) of your computer for faster screen drawing.

To launch the AVD Manager:

  • In Android Studio, select Tools > Android > AVD Manager, or click on the AVD Manager icon in the toolbar.
  • The AVD Manager screen shows your current virtual devices.
  • Click the Create Virtual Device button then click Next.
  • Select the desired system version for the AVD adn click Next.
  • Choose a Release Name, must be Android 4.0.3 or higher, from the table and click Next.
  • Type in an Name for your emulator in the text box next to AVD Name.
  • Ensure Use Host GPU is checked and click Finish

NOTE: Please read more about hardware acceleration here.

Virtual Machine Acceleration

The Android emulator allows for taking advantage of a CPU extension for running virtual machines (VM's). In order to take advantage of this feature you must amke use of x86 system image target emulator. We provide x86 native libs to support running an emulator inside an accelerated virtual machine. Please refeer to Android docs to configure your environment for virtual machine acceleration.

Feedback on this topic?