3

do you know good librairies that are more or less the equivalent of RestKit but for Android ?

I got a small idea but there might be other interesting solutions.

Thx

Snicolas
  • 37,840
  • 15
  • 114
  • 173
  • check out restlet. and see http://stackoverflow.com/questions/7743747/restkit-in-android – Kyle Clegg Feb 15 '13 at 08:04
  • You can check out the Android volley (from Google). You can download source code [here](https://android.googlesource.com/platform/frameworks/volley) and tutorial can be found [here](http://java.dzone.com/articles/android-%E2%80%93-volley-library) – Lunf Oct 30 '13 at 07:44
  • You can find a list of alternatives on the README of RoboSpice : https://github.com/stephanenicolas/robospice/blob/release/README.md – Snicolas Aug 07 '14 at 00:43
  • Give [Retrofit](http://square.github.io/retrofit/) a shot. It looks easy with plenty of customization available. It also has [OkHttp](http://square.github.io/okhttp/) that can pair with it. – craned Mar 06 '15 at 16:53

1 Answers1

0

I created and open sourced some code that I based off the idea of RestKit when I saw there was nothing like it for Android. It can help with Network requests in Android, specifically if you are doing many requests all in the same activity and want to keep things readable.

Its called Android Network Kit, and the example app included uses the Spotify API to demonstrate this. The advantages are that you can keep all the messy networking code in a separate file, but expose a method to parse the response you get back.

It can also help to construct GET or POST requests easily, using GET parameters (GET) , Form encoded parameters (POST) or JSON parameters (POST), by simply supplying an array list of key values.

I don't have any of the Object Mapping that RestKit has, but you could always combine my app with Gson for that. (I plan on including this in the next version of Android Network Kit).

Jameo
  • 4,507
  • 8
  • 40
  • 66