ArcGIS for Android Development Environment Configuration

Source: Internet
Author: User

Learning programming, all the languages can be figured out, as long as you learn one of them, everything else is cloudization ......

GIS development is typical of ArcGIS

ArcGIS will soon release the official version of ArcGIS for Android.

The configuration of the ArcGIS for Android development environment is relatively complex, but it is relatively simple for friends who are familiar with Java development or have experience in ArcGIS for Java development, including the following aspects:

Prerequisites:

Eclipse IDE requirements
1. the android development tools (ADT) Plug-in for Eclipse plug-in
2. The ArcGIS API for Android Eclipse plug-in for Eclipse plug-in (this plug-in currently only supports
Eclipse3.5 (Galileo) and eclipse3.6 (Helios ))
3. Install the eclipse javadevelopment tools (jdt) Plug-in before installing the ADT.
4. Java Development Kit (JDK) 6

Supported Android SDK platforms
SDK platform Android 2.1, API 7 or above
Supported Server versions and platforms
ArcGIS API for Android supports services of ArcGIS Server 9.3.1 and 10.0

1. Install JDK and Tomcat (you do not need to install it if Tomcat is not used as the server)

Note: here we will introduce the green JDK and tomcat installation method. If you download the installation package, you can directly install it without complicated configuration, therefore, if you are not familiar with Java programming environment configuration, you can use this method to install

1. Place JDK in the c: \ Program Files directory:

1) Add an environment variable before path

C: \ Program Files \ jdk1.6.0 _ 10 \ bin;

2) Add the environment variable java_home.

The value is c: \ Program Files \ jdk1.6.0 _ 10.

2. install Tomcat in the c: \ Program Files directory:

1) Add the environment variable classpath

The value is .; c: \ Program Files \ jdk1.6.0 _ 10 \ JRE \ Lib; C: \ Program Files \ jdk1.6.0 _ 10 \ Lib \ tools. jar; C: \ Program Files \ jdk1.6.0 _ 10 \ Lib \ DT. jar; C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ bin \ Bootstrap. jar

2) Add the environment variable atat_home.

Value: C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0.

3) Add the environment variable catalina_home.

Value: C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0.

4) Add the environment variable catalina_base

Value: C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0.

Verify that Tomcat is successfully installed:

1) start Tomcat;

2) in IE browser, enter http: // localhost: 8080/to go To the Tomcat homepage, indicating that Tomcat is successfully installed;

 

2. Download eclipse

If you do not have eclipse, go to http://www.eclipse.org/downloads/to download win 32bit or other versions of Eclipse IDE for Java developers (92 m:

Decompress the package and use it.

3. Install androidsdk

First download the androidsdk from the Android Developers website and decompress it to any folder,

Run SDK setup.exe and click available packages. If no package is available, click Settings, select "Force https: //..." In MISC, and then click available packages.

Select the SDK you want to install and its documentation or other packages. Click installation selected, accept all, and install accepted to download and install the Selected Package. (Note: it takes a long time to download the package, you can directly copy the downloaded androidsdk file, and you only need to set the environment variable)

 

In the environment variable, create an absolute path (D: \ androiddevelop \ Android-SDK-Windows \ tools; D:) for the tools and platform-tools in the android SDK: \ androiddevelop \ Android-SDK-Windows \ platform-tools ).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 2. Set the environment variables of the android SDK

After "OK", restart the computer. After restarting the computer, enter the CMD command window and check whether the SDK is successfully installed.
If Android-H has the following output, the installation is successful:

 

Thu,ADTInstall

Open Eclipse IDE and choose "help"-> "install new software" from the menu"

Click Add.... In the displayed dialog box, enter name and location: name, and enter http://dl-ssl.google.com/android/eclipse. As shown in:

 

After the return result is confirmed, select the ADT we just added from the drop-down list after work with. We will see the developer tools below, which will show Android ddms and Android development tools, select them. As shown in:

Next, follow the prompts to proceed to the next step.

After completion:

Select WINDOW> preferences...

Select android on the left-side panel, Click Browse... on the right side, and select the SDK path. The local machine is:
D: \ androiddevelop \ Android-SDK-Windows

Click Apply and OK.

5. Configure Virtual Devices

Download the corresponding Android platform and create a new virtual device. For example

Now, the android development plug-in eclipse has been configured. We can start to configure ArcGIS API
Android development plugin.

Vi. Install ArcGIS plug-in

Now that the android development environment is ready, you need to install the libraries and Eclipse plug-ins related to ArcGIS development. Before that, make sure that you have downloaded the android 2.1 or 2.1 platform because this is system requirement 1 of ArcGIS Android API.
ESRI provides an online upgrade address (http://downloads.esri.com/software/arcgis/android) to help users install ArcGIS development plug-in, in eclipse, or through [help]-> [install new software ...] You can install these components in the menu:

After installing the ArcGIS development plug-in, you can view the menus of [ArcGIS project for Android] and [ArcGIS samples for Android] In the options of the new project, the development environment of ArcGIS Android API is successfully configured.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.