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
0
votes
1 answer

HttpComponentsClientHttpRequestFactory error on Android 9

My android code is: HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory(); factory.setConnectTimeout(10000); RestTemplate restTemplate = new RestTemplate(factory); is working fine since android 8, but when I…
teteArg
  • 3,684
  • 2
  • 20
  • 18
0
votes
0 answers

Spring Android decode JSON Exception

I've a Spring Boot 2 REST application. I'm consuming REST from Angular and recentely I made an Android application using the Spring for Android 2.0.0M3 library. Usually I make a REST call like this: private class Login2 extends AsyncTask
drenda
  • 5,846
  • 11
  • 68
  • 141
0
votes
2 answers

Is Spring for android being developed?

I have android app in which I use Rest Remplate from Spring for Android. I also use OkHttpClient. I'm planning to upgrade OkHttpClient library in my app to 3.9.x but this uses OkHttpClient3, RestTempkate uses OkHttpClient 2.x. Last version of…
question
  • 21
  • 4
0
votes
1 answer

Build failed for Error:Execution failed for task ':app:transformNative_libsWithMergeJniLibsForRelease'

I got this error when add project library gpuimage-library . to my app's gradle.build would fix the issue, however, it doesn't. Here is what my app's gradle.build currently looks like. This is top-level build.gradle config: // Top-level build file…
0
votes
1 answer

spring-android Rest Template 401 and HttpMessageNotReadableException

I've set my convertors like so - converters = {StringHttpMessageConverter.class, FormHttpMessageConverter.class, MappingJackson2HttpMessageConverter.class} I assumed that it would try string first before trying to map to JSON. How do I signal to the…
user1854555
  • 223
  • 2
  • 10
0
votes
2 answers

Java - unable to map JSON array to object with Spring getForObject()

I have to consume an API RESTful web service. At the moment I have to deal with a JSON object which looks like: { "success":true, "error":"", "message":"", "data":[ ["USD","US Dollar","11,696", "connected"], …
Jhon Zunda
  • 63
  • 11
0
votes
1 answer

Spring 4 Boot, Security and Android -> POST HttpClientErrorException 403 Forbidden

Good Afternoon, I am getting an error when trying to POST some data to my server deployed on tomcat. I think it's a Spring security issue. On the server, here is my security setup: try { http.authorizeRequests() …
Killesk
  • 2,734
  • 3
  • 22
  • 29
0
votes
1 answer

Android Spring ClassNotFoundException For ObjectMapper

I'm having this annoying exception in my Android project. What I'm trying to do is to post json to my rest service. My problem is that I can't use the MappingJackson2HttpMessageConverter. Whatever I do it keeps throwing an exception: 04-27…
dephinera
  • 3,703
  • 11
  • 41
  • 75
0
votes
1 answer

How to build war with spring-android-basic-auth server

The following command lines to build the deployment artifact with the spring-android-basic-auth server module (cloned from https://github.com/spring-projects/spring-android-samples/tree/master/spring-android-basic-auth) only creates a…
Ray Shi
  • 1
  • 1
0
votes
1 answer

How to Maintain interoperability between versions of JSON-making POJOs between Spring MVC REST API and Android App that consumes the API

I have a Spring MVC REST API where I make frequent changes to POJO classes which turns some information to JSON response (i will call them JSON-representational POJOs) which is consumed in an android app using RestTemplate and map the response to…
webjack
  • 33
  • 2
  • 7
0
votes
1 answer

Spring-MVC : Creating restful controller for posting/retreival of Objects

I am working on an Android application with which I want to connect to a Spring-MVC based webapp. Currently I am working on building a restful controller for the webapp. I tried connecting via Android to the controller method to save an object which…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
0
votes
1 answer

How to have sessions in http basic authentication in a spring based server

I am trying to create a Spring server for an android client and am using basic authentication. I have a controller as follows: @RequestMapping(value = "login", method = RequestMethod.GET, produces = "application/json") public @ResponseBody Message…
doomguy
  • 401
  • 10
  • 26
0
votes
1 answer

Error while autowiring Spring repository

I have a repository for the entity 'AppUser' as follows: @Repository public interface AppUserRepository extends CrudRepository{ public AppUser findByUserName(String username); public void delete(AppUser user); } It is…
doomguy
  • 401
  • 10
  • 26
0
votes
0 answers

Issue with Json Array using RoboSpice

I am trying to parse the following JSON array: [{"desc": "A coffee-based beverage or dessert. Usually refers to the act of topping a drink or dessert with esp...", "image_url":…
android_eng
  • 1,370
  • 3
  • 17
  • 40
0
votes
1 answer

POST not possible because instantiation of standard serializer (Jackson) fails

I'm trying to post data from my client to a rest-webserver. My client uses Spring's Resttemplate for Android. Requesting objects works, but POSTing them runs in the following error: java.lang.RuntimeException: Unable to start activity…
Stefan Wegener
  • 726
  • 1
  • 10
  • 25