I am planning to save an opened file to the android cache. But before I start I want to know the maximum size of the cache file, and how can I manage the cache size according to device?
Doc says that:
These files will be ones that get deleted first when the device runs low on storage. There is no guarantee when these files will be deleted.
and there is also a suggestion:
Note: you should not rely on the system deleting these files for you; you should always have a reasonable maximum, such as 1 MB, for the amount of space you consume with cache files, and prune those files when exceeding that space.
So, as I understand, cache can be as big as free memory on storage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With