How can I use both DiskLruCache(DiskCache) and LruCache(MemoryCache)?
问题 I'm developing Image Loader using both cache. and here is my logic. 1st, start get the images on the disk cache (when app starting) 2nd, check the memory cache. if it is, load from Cache memory. 3nd, If the image doesn't exist in memory cache, check the Disk cache. then put the image into the memorycache. 4th, If there isn't the image both memory cache and disk cache, make the bitmap from url using the asynctask. then put the Disk cache. and This is my source. 1st, App's onCreate() protected