Best REST Client Framework/Utility on Android

JavaAndroidJsonRest

Java Problem Overview


I'm about to build an Android application that will use a RESTful Web Service. I don't want to write the REST client by myself, as I want it to be as effective and stable as possible (this is the first time I'm using REST).

Are there any (free) frameworks or utilities avaibale for Android/Java that I can use in my project?

Java Solutions


Solution 1 - Java

http://restlet.org">Restlet</a> is an excellent REST framework and has an Android edition.

Solution 2 - Java

Any HTTP Client library should be perfectly adequate to interact RESTfully with a web API. E.g. http://developer.android.com/reference/org/apache/http/client/HttpClient.html

Solution 3 - Java

try out Spring Android - is has very handy class RestTemplate.

Solution 4 - Java

I'm also looking for a SMALL solution for rest client on Android. After a quick comparison, I found:

  • Resting v0.7: resting-0.7-dev-release-android.jar - 1.3MB (all-in-one according to the doc)
  • Restlet v2.1.2: org.restlet.jar - 728KB (however must > 1MB after adding httpclient extention and json extention)
  • Spring for Android v1.0.1: spring-android-core-1.0.1.RELEASE.jar 113KB + spring-android-rest-template-1.0.1.RELEASE.jar 186KB + gson-2.2.3.jar 194KB = 493KB (without auth support, otherwise spring social will be a dependency)

Please correct me if any miss.

Solution 5 - Java

check out Resting - "Lightweight Java component to consume REST service and transform response into objects"

http://code.google.com/p/resting/

i haven't used it myself, but i plan to.

to go along with it, i'm searching for example source code to implement the best practices described in this google IO session. http://www.youtube.com/watch?v=xHXn3Kg2IQE

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGustav GahmView Question on Stackoverflow
Solution 1 - JavaAvi FlaxView Answer on Stackoverflow
Solution 2 - JavaDarrel MillerView Answer on Stackoverflow
Solution 3 - JavaAnatoliyView Answer on Stackoverflow
Solution 4 - JavaEvi SongView Answer on Stackoverflow
Solution 5 - JavaBen HView Answer on Stackoverflow