title: Is there a way to set a cache limit for my Android app?
body: <p>I want to set a cache limit for my android app. My app is creating PNG files periodically and saving them to a folder on the phone it's installed on. I want it so if the folder hits this limit (10MB) it will automatically start deleting the files starting with the oldest ones deleting only a certain amount at a time (9MB). I also want this process to run in the background of the phone.</p>
  
  <p>How do I do this? Screenshots would be <em>most</em> helpful. Thank you.</p>
  
  <p>I'm using Android Studio 2.2.2. My app needs to work for Android 4.4.</p>