loopj library gives connection refused error on slow internet
I am developing an app in which i am getting the data from Youtube using youtube api, every thing is working fine on healthy internet, but i get connection refused error on slow internet. how to fix this ? replace library or any other option ?
As you mentioned that you are using loopj
Yes, this is the right way to call any service through any Asynchronous libraries, loopj is very nice library but I faced the same issues of getting slow data on complex JSONS Structure. I searched alot, everyone said that slow internet is the main issue. I studied android documentation, there I found VOLLEY which is recommended by android, just study the Volley documentation and you will see the difference. I didn't found any issue after using VOLLEY.