Search code examples
androidandroid-async-http

Continue using LoopJ AndroidAsyncHttp library (deprecation)


I need to communicate with our REST-API. I found the LoopJ AndroidAsyncHttp library, but I am not sure if it is a good idea to use it, because it seems to use the HttpClient which is now deprecated in Android API 22. I found this apache project, but I am not sure if I simply can add this to my project and it will work with AndroidAsyncHttp. Any ideas or alternatives?


Solution

  • Android volley library is an excellent solution for http requests:

    https://github.com/mcxiaoke/android-volley

    It provides three common request types: StringRequest, JsonObjectRequest and ImageRequest but you can write your custom request also. It is easy to learn and you have ton of examples on the web.