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 ?

Answers


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.


Need Your Help

how can I print out data saved in LinkedHashMap

java linkedhashmap

This is a simple code to get person's info. For example, when I type in enter#runnan#male#23#Earth it would save the data in LinkedHashMap. Also when I type in search#runnan it would search the dat...

Helpers, methods and classes organization

ruby-on-rails class methods organization

When my project is growing up, I need to write some methods, but application_controller's private methods and helpers aren't provide enough space to store all extensions.