Re: [android-developers] counting files in a cache

2010-11-03 Thread Kostya Vasilyev
Does your code take into account the file system allocation unit size? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 03.11.2010 21:32 пользователь "Rob Truxler" написал: Hi folks. I'm trying to manage the files that I store in a local cache. I download files, then delete them after the t

[android-developers] counting files in a cache

2010-11-03 Thread Rob Truxler
Hi folks. I'm trying to manage the files that I store in a local cache. I download files, then delete them after the total file size in the cache exceeds a certain number of bytes. What I'm shooting for right now is something simple: setting the max cache size to be 1 MB, or 1*1024*1024 bytes = 1