Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AFNetworking for Android [closed]

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?

like image 881
Ashley Staggs Avatar asked Jul 15 '12 16:07

Ashley Staggs


2 Answers

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/

like image 110
LuxuryMode Avatar answered Oct 20 '22 18:10

LuxuryMode


Another good option could be Volley, networking library introduced on IO 2013 by Google. For more info check this topic: Volley Android Networking Library

like image 43
sealskej Avatar answered Oct 20 '22 19:10

sealskej