caching - Any best third party tool to cache image in Android? -


does have method/class caching in ios afnetworking., if yes or not kindly suggest me class use?

there several solutions can use, depends on need. if want cache images on l1 (ram) can use sdks lrucache (or support v4) , set bitmaplrucache. if need cache images on both l1 , l2 (disk) can use "2 level lru cache" solutions on github (such wuman/twolevellrucache , such).

if need caching part of image loading library can check out 1 of following: (they have l1/l2 caches)

** picasso (by square): it's simple , and easy use. http://square.github.io/picasso/

** glide has same api picasso contains enhancements (such animated gif support) https://github.com/bumptech/glide

** fresco (by facebook): thing bad ass machine, pretty simple use contains impressive set of capabilities. wouldn't use simple. https://code.facebook.com/posts/366199913563917/introducing-fresco-a-new-image-library-for-android/

(github: https://github.com/facebook/fresco)

you can see comparisons here:

picasso v/s imageloader v/s fresco vs glide http://vardhan-justlikethat.blogspot.co.il/2014/09/android-image-loading-libraries-picasso.html

cheers!


Comments