Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the cache used for in android? Will clearing it cause loss of data?enter image description here

share|improve this question

closed as off-topic by Renan, Journeyman Geek, slhck Aug 20 '13 at 4:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is not about computer hardware or software, within the scope defined in the help center." – slhck
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

It's up to the app developer on how they want app data to be stored. Cache is just a non-persistent storage option that the android os is given permission to delete without prompting the user if it needs to

extract from android dev pages

Saving cache files

If you'd like to cache some data, rather than store it persistently, you should use getCacheDir() to open aFile that represents the internal directory where your application should save temporary cache files.

When the device is low on internal storage space, Android may delete these cache files to recover space. However, you should not rely on the system to clean up these files for you. You should always maintain the cache files yourself and stay within a reasonable limit of space consumed, such as 1MB. When the user uninstalls your application, these files are removed.

Source

Note:

I'm not an android developer I was curious about your question and this is the best answer I could find in my research

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.