Volley vs Aquery vs Android Async HTTP
Asked Answered
A

2

6

I am wondering which libraries are best or faster. In my application I am using network request and image caching. I need to know which libraries are the best.

Ashly answered 18/10, 2013 at 20:28 Comment(4)
Use volley. It's by Google, has amazing caching, follows standards, has a great architecture. It's just the best.Program
As far as I know Aquery also by google code.google.com/p/android-queryAshly
@fish40 it's hosted on Google Code but not made by Google.Unutterable
why not write a test application that can use all 3 and compare the actual results?Teth
A
1

I have been using Aquery for three months now, It's great library and i recommend you to use it,

https://github.com/androidquery/androidquery/releases/tag/0.26.8

https://code.google.com/p/android-query/wiki/AsyncAPI?tm=6

//load an image to an ImageView from network, cache image to file and memory

aq.id(R.id.image1).image("http://www.vikispot.com/z/images/vikispot/android-w.png");
Ahlgren answered 3/10, 2014 at 11:2 Comment(2)
How does AQuery deal with activity lifecycle? Eg. being destroyed and recreated when rotating or low memory.Rosin
the bad news you must handle this by yourself, the good news it will not crash your app and it will throw a message in the log screen. for example let's say that you have an activity that load some date but the user has exited before the call back run, Aquary will log that you have a null pointer exception and the app will continue to workAhlgren
D
0

AsyncHTTP client has some serious design issues and you need to sometimes override a number of OnSuccess and onFailure methods just to get a response. A number of improvements are currently being made. On the other hand Volley seem to be having memory leak issues: check this post volley-slow-memory-leaks. However, I have used it now for few weeks, it seem like a better option that and I have not experienced any memory leaks myself. What is also important to note is that Volley has better response times compared to Asynchttp, at least from the few tests that I have done

Dielle answered 22/10, 2013 at 3:28 Comment(4)
There is no memory leakTeth
@ItaiHanski - I have just tested Volley. No memory leaks [yet]. Seem to be more efficient than Android Async HTTP.Dielle
Then perhaps you should edit your post as to not create a false impression.Teth
@ItaiHanski look at this #16903216Lawful

© 2022 - 2024 — McMap. All rights reserved.