Skip to content

Instantly share code, notes, and snippets.

View lotuswlz's full-sized avatar

Cathy Wu lotuswlz

View GitHub Profile
@lotuswlz
lotuswlz / 1.Research For Picasso bug
Last active August 29, 2015 14:05
Research for Picasso clear cache automatically
We use picaaso to download images in background for our android application.
But we found that when I killed my application 3 times, the picasso cache was cleared automatically.
So I do some research for this appearances, and I found that the problem is about DiskLruCache.class.
In this class, it created a file called "journal" in picasso-cache directory. The file recorded every image file name, just as follow:
journal example: ------------
libcore.io.DiskLruCache