Hector
Hector

Reputation: 5354

how to configure android Volley to use OKhttp

I am trying out the Volley networking library i would like to switch to using the OKhttp jar with volley i just cannot work out how to configure volley to use this alternative http provider. what am i missing?

Upvotes: 0

Views: 3113

Answers (2)

Sotti
Sotti

Reputation: 14389

I recommend you to use and OkHttpStack like this one that does not use okhttp-urlconnection.

I've written an article about using OkHttp, Volley and Gson for Android networking that you might find interesting.

Upvotes: 1

Vrashabh Irde
Vrashabh Irde

Reputation: 14367

Check out jake wharton's HttpStack implementation for Volley that uses OkHttp as its transport.

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

Upvotes: 2

Related Questions