Eclipse is the most widely used tool for Android development. Eclipse is an indispensable tool in today's society. It is very powerful and has few other tools to compare, it is also why it is so popular.
Nowadays, there are many powerful tools, but only a small part of them are still using other tools, today I will introduce another development tool intellij idea, which is an integrated environment for Java Development. intellij is recognized as one of the best Java development tools in the industry, especially in terms of smart code assistants, Automatic Code prompts, refactoring, J2EE support, ant, JUnit, CVS integration, code review, and innovative GUI Design, the functions are extraordinary.
The following describes how to use intellij idea to create an ArcGIS for Android project. To create An ArcGIS for Android project, we must first know how to create an android project through intellij idea.
I. intellij idea: Create an android Project
1. Open intellij idea
2. Select File> new project, or click Create a new project on the welcome page,
3. on the homepage of the new project, you must first confirm that the Create project from scratch option is selected,
4. Specify the project name on the following page, create module, select Android module as the project type in the selection box, and name the project android_hello_world,
5. Select the create source directory option on the third page. Then, we generally accept the default SRC name,
6. When you create a project for your ide for the first time, you have not configured jdks (Java sdks) for the IDE. This means that the IDE does not know where the local JDK directory is located, let alone install several JDK versions on your computer. In this case, intellij idea allows you to create a JDK to your project, click the Configure button, and specify your own jsdk through the file list, if you find the local JDK, you can click OK to add a JDK path to our project. In the future, this path will become the default JDK path of IDE, all programs can be used.
7. Finally, we need to specify the android SDK and our ide. Click new to SDK properties and select the Android platform to be used by an application,
8. Click OK after the selection to go to the select Android build target dialog box. In this dialog box, we can specify the version of Android platform that our project will use,
9. After you select OK, the next step is to select Android platform. (1) Select the list. If a simple application is selected, select create.
"Hello, world! "Project Selection box, which accepts the default activity as myactivity (3 ),
10. When you click Finish, idea automatically generates the directory structure of the application. Let's take a look at its structure,
At this point, the use of idea to create an android project has been completed.
2. Change the android project to the ArcGIS for Android Project
1. Download The ArcGIS runtime SDK for Android file.
2. decompress the ArcGIS runtime SDK for Android package,
The following three jar files are available in the plugins folder:
3. Use the decompression tool to decompress the com. ESRI. ArcGIS. Android. core_2.0.0.201206210956.jar package. The decompressed file contains two folders: Lib and libs,
4. copy the files in the libs file to the android project created through idea,
5. Right-click the idea tool and choose the android project.Open Module Settings.
6. Select Global Libraries in the pop-up form, click the icon, and select the Java option from the drop-down menu,
7. In this case, select the Three jar files in the Lib folder extracted above in the pop-up form, and click OK all the way,
8. Now we have added all the files required by the project to the project,
9. You just need to add the map control in eclipse and write the code. At this time, you have created ArcGIS for Android in idea.