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?
Asked
Active
Viewed 1.1k times
2 Answers
16
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.

pawelzieba
- 16,082
- 3
- 46
- 72
-
NO, cachce is very small in size...Read http://www.blaze.io/mobile/understanding-mobile-cache-sizes/ – AbhishekB Mar 14 '12 at 06:28
-
2@AbhishekB Read with understanging, please. Below is the same answer. This article is about browser's cache. – pawelzieba Mar 15 '12 at 17:32
0
This link should help you understand it a bit:

Michael Oryl
- 20,856
- 14
- 77
- 117

Hemant Menaria
- 701
- 1
- 7
- 17
-
5
-
http://stackoverflow.com/questions/4119405/android-how-to-increase-heap-size-at-runtime – Hemant Menaria Jan 12 '12 at 10:54