The Android SDK team recently released an upgraded faster emulator that has support for native OpenGL ES 2.0! This is a key tool for ArcGIS Android developers in building and testing their apps. We have been testing on all platforms and today can announce support for ArcGIS Runtime SDK for Android apps working on the emulator on all platforms, Mac, Linux, and Windows. Here are the steps to configure your development environment:
1. On all platforms ensure that you have ‘ARM EABI v7a System Image installed for Android 4.0.3 (API 15).
2. On Win/Mac install the Intel Hardware Accelerated Execution Manager under Extras.
3. On Windows, configure the Intel Hardware Accelerated Execution Manager by executing the <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe program and follow the installation dialogs. Once complete, open a command prompt and run the following command:
> sc query intelhaxm
A status message should return that it is running. If not stop here and troubleshoot using resources at the end of the post. On all platforms you need to create an Android 4.0.3 AVD and enable the GPU emulation hardware property.
1. Create a new Android Virtual Device targeting Android 4.0.3 – API Level 15.
2. Under Hardware, click New
3. Under Property select GPU emulation
4. Click OK.
5. Change the property Value to ‘Yes’
6. Click Create AVD.
On Windows you need to enable gpu emulation on the Eclipse Run Configuration
1. In Eclipse, click your Android project folder and then select Run > Run Configurations…
2. In the left panel of the Run Configurations dialog, select your Android project run configuration or create a new configuration.
3. Click the Target tab.
4. Select the AVD you created in the previous procedure.
5. In the Additional Emulator Command Line Options field, enter:
6. Run your Android project using this run configuration.
We hope this improvement makes the emulator a more useful tool in your testing and development of ArcGIS Runtime SDK for Android applications. More information on hardware acceleration can be found here.