Android may auto-delete the files in CacheDir once the system gets low on memory. But the docs say we should not rely on the system clearing this cache, and hence write addi
getCacheDir() returns the path to the cache files whereas getFilesDir() returns the path to files created and stored in the internal storage of your app. The internal storage is persistent: it cannot be deleted by the system.