问题:
Two-part question from an iOS developer learning Android, working on an Android project that will make a variety of requests from JSON to image to streaming download of audio and video: 来自学习Android的iOS开发人员的一个分为两个部分的问题,该问题涉及一个Android项目,该项目将提出从JSON到图像到音频和视频流下载的各种请求:
On iOS I have used the AFNetworking project extensively. 在iOS上,我广泛使用了AFNetworking项目。 Is there an equivalent library for Android? 是否有适用于Android的等效库?
I've read up on OkHTTP and Retrofit by Square, as well as Volley but don't yet have experience developing with them. 我已经阅读了Square的OkHTTP和Retrofit ,以及Volley,但还没有与它们一起开发的经验。 I'm hoping someone could provide some concrete examples of best use cases for each. 我希望有人可以为每个案例提供一些最佳用例的具体示例。 From what I've read, seems like OkHTTP is the most robust of the three, and could handle the requirements of this project (mentioned above). 根据我的阅读,似乎OkHTTP是这三个中最强大的,并且可以满足该项目的要求(如上所述)。
解决方案:
参考一: https://stackoom.com/question/18vAS/Android网络库的比较-OkHTTP-Retrofit和Volley-关闭参考二: https://oldbug.net/q/18vAS/Comparison-of-Android-networking-libraries-OkHTTP-Retrofit-and-Volley-closed
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4281319