Environment: Windows 7 + ArcGIS Server 10 + ArcGIS API for Android 1.0 Beta
I. Configure the development environment
The development environment of ArcGIS API for Android (hereinafter referred to as ArcGIS Android API) is actually equivalent to "android Development Environment" and "ArcGIS development plug-in". The Android development environment is based on Eclipse. Therefore, it should be easy to configure as long as you are familiar with eclipse.
Android Development Environment
[1]
The android development environment is based on Eclipse, while the ArcGIS Android API requires that the eclipse version be 3.5 (Galileo) or 3.6 (Helios ). Therefore, the first step to configure the android development environment is to correctly install JDK 6 and install eclipse (3.5/3.6, http://www.eclipse.org/downloads/, classicversion recommended ).
Install the android SDK after you have installed eclipse. The android SDK can be located in the D:/software/develop/Android-SDK-Windows directory.
Next, we need to associate eclipse with the android SDK. Until now, eclipse does not know where to call the android SDK. Therefore, we also need to install the android Eclipse plug-in eclipse, this plug-in is called Android development tool (ADT), installation can be done through Android online upgrade address (https://dl-ssl.google.com/android/eclipse/), this process through eclipse [help]-> [install new software ...] Menu trigger:
Figure 1 install the eclipse ADT plug-in
After the installation is complete, you can see that the android option already exists in eclipse through the [Window]-> [References] menu of eclipse. In this case, you need to specify the path of the android SDK, for example, on my computer, I need to tell the eclipse ADT plug-in that the android SDK is located in the D:/software/develop/Android-SDK-Windows directory.
Figure 2 configure the ADT plug-in attribute so that it can find the android SDK
You may have noticed that the above dialog box lists two Android target devices: Android 2.1 and Android 2.2, but these two platforms may not be displayed in your eclipse, because I have downloaded the above two platforms through the SDK manager tool provided by the android SDK, and what you need to do is the same as what I did before, download the platform you need from the [Window]-> [Android SDK and AVD manager] menu and create a simulator [2]:
Figure 3 download the Android platform of the corresponding version
Figure 4 Create a simulator
[1] installation documentation can refer to: http://androidappdocs.appspot.com/sdk/installing.html
[2] or virtual device (AVD, Android Virtual Devices ).