A Image Loader for Android
sample: http://www.appchina.com/app/com.yeamy.dnf.monsterscard
ImageLoader loader = ImageLoader.getInstance();
loader.init(context);
loader.get("http://~~~.jpeg", imageView);
loader.remove(imageView);
-
check memory cache
--> not null, return
--> null, begin load task below -
check disk cache
--> not null, return and check from http
--> null, get from http -
get from http
--> has data(http 200), save to disk and return
--> has modified, update disk cache and return
--> no change(http 304), do nothing