【问题标题】:how to configure android Volley to use OKhttp如何配置 android Volley 以使用 OKhttp
【发布时间】:2013-06-28 10:38:35
【问题描述】:

我正在试用 Volley 网络库 我想改用带有 volley 的 OKhttp jar 我只是无法弄清楚如何配置 volley 来使用这个替代的 http 提供程序。 我错过了什么?

【问题讨论】:

    标签: android http android-volley


    【解决方案1】:

    查看 jake wharton 的 HttpStack Volley 实现,它使用 OkHttp 作为其传输。

    https://gist.github.com/JakeWharton/5616899

    【讨论】:

    • 质量(如此简单),而不仅仅是您擅长的峡湾?
    【解决方案2】:

    我建议你使用不使用 okhttp-urlconnection 的 this one 和 OkHttpStack。

    我为 Android 网络编写了一个 article about using OkHttp, Volley and Gson,您可能会觉得有趣。

    【讨论】:

      猜你喜欢
      • 2015-07-13
      • 1970-01-01
      • 2015-03-25
      • 1970-01-01
      • 2017-03-27
      • 2015-07-22
      • 1970-01-01
      • 2015-11-01
      • 2017-02-01
      相关资源
      最近更新 更多