It is estimated that before Android SDK v4.0.3, the biggest headache for ArcGIS for Android Developers is that they cannot use simulators for debugging, it is so painful for programmers who don't have a real machine or who love their beloved mobile phones and tablets for testing. The reason is that ArcGIS for Android SDK requires support from OpenGL ES 2.0, while Android SDK v4.0.3 and earlier simulators do not have GPU, so OpenGL ES 2.0 is not supported, so there is no way to develop it on the simulator.
Android SDK v4.0.3 and later versions provide support for OpenGL ES 2.0, which is a feature of great interest to ArcGIS Android Developers. After testing, arcGIS runtime SDK for Android supports simulator debugging on Mac, Linux, and Windows platforms. However, before debugging a simulator, You need to perform the following configuration steps:
1. (In Windows/MAC) Check that "arm" is installed in android4.0.3 (api15)
Eabi v7a system image ";
2. (In Windows/MAC systems, an optional step) install "Intel" under the "EXTRAS" option
Hardware accelerated execution manager ";
SDK tools V20 is required to install "Intel hardware accelerated execution manager". If your Tools version is not enough, upgrade the Tools version first.
3. (In Windows, an optional step) Run "intelhardware"
Accelerated execution manager ";
Path: <SDK>/extras/Intel/hardware_accelerated_execution_manager/intelhaxm.exe:> SC query intelhaxm,The command line window returns the running status information, indicating that the installation is successful.
4. Create an AVD;
You must create an android4.0.3 AVD and enable GPU simulator attributes on all platforms.
4.1 create AVD in MAC system
1) create a new Android virtual device in the android 4.0.3 (API 15) Environment;
2) Select "hardware" and click "new ";
3) Select "GPU emulation" in the "property" option ";
4) Click "OK ";
5) change the value of "attribute" to "yes ";
6) Click "create AVD ".
4.2 create AVD in Windows
1) In eclipse, select "AVD manager" under the "window" menu ";
2) In the pop-up "android Virtual Device Manager" dialog box, select "new" in the right column ";
3) in the "Create new Android Virtual Device" dialog box that appears, configure attributes such as AVD name and hardware, and select the "new" button on the right of "hardware, add GPU emulation;
4) change the value of "attribute" to "yes" and click "create AVD". The creation is complete.
5. Use a simulator for debugging.
1) In eclipse, select the android project folder and choose "run"-"" Run deployments… "from the menu ......";
2) on the left side of the "run deployments" dialog box, select the android project running configuration or create a new configuration;
3) Select the "target" tab;
4) Select the AVD created in the previous step;
5) in the "Additional emulator command line options" field, enter-GPU on and click "Apply ";
6) run the android project.