Android网络库的比较:OkHTTP,Retrofit和Volley [关闭]

℡╲_俬逩灬. 提交于 2020-07-26 11:15:39

问题:

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到图像到音频和视频流下载的各种请求:

  1. On iOS I have used the AFNetworking project extensively. 在iOS上,我广泛使用了AFNetworking项目。 Is there an equivalent library for Android? 是否有适用于Android的等效库?

  2. I've read up on OkHTTP and Retrofit by Square, as well as Volley but don't yet have experience developing with them. 我已经阅读了Square的OkHTTPRetrofit ,以及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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!