JosephM
JosephM

Reputation: 2935

Volley request with HttpUrlConnection

I'm just updated app with api 23 (Android Marshmallow) And MarshMallow removes support for the Apache HTTP client. If your app is using this client and targets Android 2.3 (API level 9) or higher, have to use the HttpURLConnection class instead. but volley support only AndroidHttpClient. So how can i use volley with HttpUrlConnection for better performance and caching requested data.

Upvotes: 1

Views: 612

Answers (1)

Nilesh Senta
Nilesh Senta

Reputation: 5470

Go to Android SDK Dir ...Android\sdk\platforms\android-23\optional

Copy "org.apache.http.legacy.jar" file to lib folder. Clean project and run.

Upvotes: 1

Related Questions