我是android工作室的新手,我知道android不再支持Apache HttpClient。那么,对于使用JSON实现Android web服务,我应该选择什么替代方案呢。哪种API将适合于达到高于16 API水平的目标。
请改用HttpURLConnection。
或者一些库,如:
改装:http://square.github.io/retrofit/
Volley:https://developer.android.com/training/volley/index.html
OkHttp:http://square.github.io/okhttp/
阅读这篇关于比较的文章:Android网络库的比较:OkHTTP、Reform和Volley