Best REST Client Framework/Utility on Android

40,362

Solution 1

Restlet is an excellent REST framework and has an Android edition.

Solution 2

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

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

Solution 4

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

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

Share:
40,362
Gustav Gahm
Author by

Gustav Gahm

Software Development Consultant Specializing in Enterprise Application Development and Business Intelligence. Doing most of my work in the Retail industry.

Updated on October 14, 2020

Comments

  • Gustav Gahm
    Gustav Gahm over 3 years

    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?