Android API 23 Removed packages

前端 未结 4 955
独厮守ぢ
独厮守ぢ 2021-01-06 09:24

What is the best replacement for org.apache.http ?

since they say this in Android API Differences Report .

Removed Packages in API 23

org.apa         


        
4条回答
  •  灰色年华
    2021-01-06 10:01

    Like Blackbelt stated, HttpURLConnection is the default replacement for the HTTPClient. If you chek here (at the end), you may see that thats where they will be focusing their resources.

    However, is worth mentioning that some common APIs are being used, and works nicely if the focus of your app is not web browsing, but rather just using internet to fetch imgs, jsons, texts, etc.

    I recommend Volley. It does look like it will be supported for a long time (based on my opinion), and is supported by google itself.

提交回复
热议问题