Questions tagged [spring-android]

Spring for Android is a framework that is designed to provide components of the Spring family of projects for use in Android apps.

Spring for Android is a framework that is designed to provide components of the Spring family of projects for use in Android apps. Like all Spring projects, the real power of Spring for Android is found in how easily it can be extended.

Features:

  • A Rest Client for Android
  • Auth support for accessing secure APIs

More Information:

Getting Started Guides:

Related Tags:

67 questions
75
votes
6 answers

Android Gradle Duplicate files copied in APK META-INF/license.txt

I'm going to add RESTful Web Service support with Spring to my Android application as described here https://spring.io/guides/gs/consuming-rest-android/. This is top-level build.gradle config: // Top-level build file where you can add configuration…
brunoid
  • 2,121
  • 2
  • 12
  • 22
24
votes
2 answers

Spring RestTemplate HTTP Post with parameters cause 400 bad request error

Possible duplicate Need help on RestTemplate Post Request with Body Parameters? and Spring RESTtemplate POST but these answers don't work for me I tried to get access token from Instagram API by Spring Android. The request from Instagram 's document…
ductran
  • 10,043
  • 19
  • 82
  • 165
23
votes
6 answers

java.lang.IllegalArgumentException: Illegal character in scheme at index 0: localhost

I'am developping an android app that receive an data from server (localhost - mssql and nodejs), save data and then display it after receiving the server response I get this error I follow the instructions below enter link description here instead…
user3468921
  • 561
  • 2
  • 8
  • 26
11
votes
2 answers

Deserialization issues with Joda Time / Jackson 2 / Spring - Can not instantiate value of type [simple type, class org.joda.time.DateTime]

I'm getting an exception when attempting to deserialize an JSON string which contains date strings to a POJO using Joda. I'm using Jackson2 with Spring and Robospice. I'm getting the following exception: Could not read JSON: Can not instantiate…
Chris Nevill
  • 5,922
  • 11
  • 44
  • 79
10
votes
0 answers

How to setup an Android development environment using STS, Android SDK, Maven and Spring Android

Install latest STS (currently 3.4.0) Setup your Android development environment in STS as per the normal Android development setup steps for an existing IDE: http://developer.android.com/sdk/installing/index.html For the above step, you could save…
dleerob
  • 4,951
  • 4
  • 24
  • 36
9
votes
0 answers

Spring Android Vs Retrofit

I've been doing some digging lately into the REST Clients for Android. Majority of the discussions have been around Volley and Retrofit, seldom I came across comparisons between Ion, Robospice with these two. I could not find any comparison with…
Mushtaq Jameel
  • 7,053
  • 7
  • 33
  • 52
8
votes
2 answers

Adding Spring for android dependency to gradle + Android studio project

Official Spring for Android page mentions to add following dependency code. dependencies { compile 'org.springframework.android:spring-android:1.0.1.RELEASE' } which is latest version of build as of this time.(as per website) I have added it in…
sat
  • 40,138
  • 28
  • 93
  • 102
7
votes
1 answer

Send multipart file via RestTemplate

i have some problem about send image file (multipart) using android via Spring restTemplate. here is my controller on server : @RequestMapping(value = "/uploadPhoto/{id}", method = RequestMethod.POST) @ResponseBody public…
andri_sasuke
  • 211
  • 3
  • 10
6
votes
0 answers

Mapping POJOs to application/x-www-form-urlencoded with custom form keys

I'm using RoboSpice with Spring Android to perform REST api calls. Data need to be sent with the Content-Type set to application/x-www-form-urlencoded. Let's say I have a Pojo class like this: public class Pojo { private String pojoAttribute; …
grandouassou
  • 2,500
  • 3
  • 25
  • 60
5
votes
1 answer

AndroidTest Failed while running from command line :app:connectedDebugAndroidTest

I'm using android spring RestTemplate for making REST service calls on my app. I added android Instrumentation test which includes mocking the REST service calls. All my test are running fine while running from android studio, but the test failed to…
4
votes
1 answer

Android Spring RestTemplate with Proxy

i need to read the proxy information from the phone and if the phone is under a proxy i need to set this proxy on my spring restTemplate object.I've tried the follow code without any luck, could anyone tell me what i'm doing wrong. String…
user614778
  • 547
  • 2
  • 5
  • 14
4
votes
1 answer

How to disable Spring Animation for Espresso Tests?

I'm using the Android spring animation in my project (see here). However, these animations are getting in the way of my espresso tests. I already tried to disable these animations using the developer options in the phone, but they seem to not be…
4
votes
4 answers

Android - Having problems managing server endpoints in app client

I have following server Urls: server-base-url/method1 server-base-url/method2 server-base-url/method3 ... server-base-url/method100 I am currently using a properties file to store the URLs. When I need to consume some of the server URLs,…
Antonio
  • 11,413
  • 6
  • 34
  • 48
4
votes
3 answers

Robospice Impossible to start SpiceManager as no service of class

I am trying to use following libraries to develop my app. Robospice Gson and Spring for android To do so, In my gradle file I have following dependencies added compile 'com.octo.android.robospice:robospice-spring-android:1.4.13' compile…
Dipendra
  • 1,547
  • 19
  • 33
3
votes
2 answers

Error : Gradle: Duplicate files during packaging of APK

In my gradle android application when I run the application I got below error. Error:Gradle: duplicate files during packaging of APK /home/WorkSpace/MyProject/app/build/outputs/apk/app-debug-unaligned.apk Error:Gradle: Execution failed for task…
KJEjava48
  • 1,967
  • 7
  • 40
  • 69
1
2 3 4 5