You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joshua Rogers edited this page Dec 27, 2013
·
2 revisions
use cache to store temporary files (kind of like browser history)
use Context.getCacheDir() or Context.getExternalCacheDir()
Each application has it's own reserved app-specific cache
Android will clear your cache if it's in need of internal memory
You should manage your own cache within your application (allow it to grow a maximum size, 5MB or so)
see my CacheManager class for an example of cache management (note: not exactly perfect. there are some issues, but it has some basic management in terms of clearing based on max size)