Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Boolean clearInternalCache ()
- {
- String[] cacheFiles = fileList();
- if (cacheFiles.length > 0)
- {
- for (int i=0; i <= cacheFiles.length; i++)
- {
- deleteFile(cacheFiles[i]);
- Log.i("InternalStorage", "Deleted: " + cacheFiles[i]);
- }
- return true;
- }
- else
- {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement