- Install the latest version of STS (currently 3.4.0)
- Set up your Android development environment in STS in accordance with the usual steps for setting up Android development for an existing IDE: http://developer.android.com/sdk/install/index.html
- To complete the above step, you can save time by copying the "android-sdk" folder from another developer who has already set up his environment and specify your STS in this android folder (Window -> Preferences → Android -> SDK Location)
- Install m2e-android according to: http://rgladwell.imtqy.com/m2e-android/
Create an example Android application using Maven
- In STS, click File -> New → Maven Project.
- Choose the location of your workspace and click "Next"
- For Maven Archetype, select "android-quickstart" and click "Next." This archetype must exist if you added the archetype according to: http://rgladwell.imtqy.com/m2e-android/
- Fill out the necessary details of the Maven project and click Next.
- In the pom.xml file, set the "platform.version" tag to 4.1.1.4.
- Right-click on the project and select Build Project.
- Right-click on the project and select "Run as" Application "Application for Android."
- It should launch your Android emulator and deploy the Hello World app.
Using Spring libraries in an Android application:
- Maven, , : http://projects.spring.io/spring-android
- , . Android STS : " dex Lorg/springframework/core/ErrorCoded". , . , maven "spring-android-auth".
RestTemplate Spring Android:
- : http://docs.spring.io/spring-android/docs/1.0.1.RELEASE/reference/html/rest-template.html
- , Android . : restTemplate.getMessageConverters(). Add (new MappingJackson2HttpMessageConverter());
- , Android "android.permission.INTERNET", .