Search code examples
androidandroid-volleyaquery

AQuery and Volley ImageLoader for caching images


I have already implemented AQuery throughout my app for image loading. I have not used Volley Image caching yet and wondered if I could also use it for image caching as well. For what purposes might Volley API be a better fit than AQuery?


Solution

  • You will need to write your own ImageCache implementation if you use Volley.

    If you want an integrated implementation that you have the most control over, use Volley. There's probably an implementation out there for ImageCache on GitHub already.

    If you want a fast way to load images, use Android Universal Image loader or AQuery. If you haven't tried already, Android Universal Image Loader works quite well.


    EDIT

    There's a good implementation of the ImageCache interface here:

    https://github.com/rdrobinson3/VolleyImageCacheExample/blob/master/CaptechBuzz/src/com/captechconsulting/captechbuzz/model/images/BitmapLruImageCache.java

    This requires the support library.