I have an application that shows images to the user in viewPager. My app cache about 150 MB per day and every day will double the size. I know Android will take care of deleting the app cache if its low in space but they emphasis on handling it by yourself but how ? Should I :
1- Check the cache size every time the app wants to add an image (seems like an overkill since you have to loop over all the files to get the cache size). 2- Not use a size limit and just free my app cache on next application start. (if the user didn't open the app the data will be there until the OS decide to remove it) 3- Creating a repeated alarm every day to check and clear the cache (it looks like a waste battery) What a good Approach to handel the issue and if you managed caching in your app what was your flow ? Thanks You should always maintain the cache files yourself and stay within a reasonable limit of space consumed, such as 1MB. What i want to do is to cache the images into the desk and im wondering what a good Approach to manage caching in Android. Now my app cache about 150 MB per day and every day will double the size now as start i think -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

