AFNetworking for Android

Ashley Staggs picture Ashley Staggs · Jul 15, 2012 · Viewed 14.3k times · Source

I am in the process of porting my iOS app to Android, and am now in need of a simple to use asynchronous class set to download JSON data and images.

For iOS I am using AFNetworking which is an amazing tool. Is there anything like that for Android?

Answer

LuxuryMode picture LuxuryMode · Jul 15, 2012

There's loop j's async http lib for Android (though I'm not a huge fan) http://loopj.com/android-async-http/. Honestly, best thing is just to use apache httpclient inside of an intentservice so it's async and then deliver the results to your activities, etc through a ResultReceiver.

UPDATE

I now recommend Retrofit, an open-source project from Square. I use it and it works very well as a REST client. http://square.github.io/retrofit/