Skip to content
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)

Clone this wiki locally