My app creates temporary files with File.createTempFile (...) in the directory returned by getCacheDir (). Then clear the cache with the solutions given here: How-to-delete-cache-folder-of-app
Using the "Device File Explorer" tool I can see that the files are deleted, as the image shows (It is not a synchronization failure because I can see them when I do not delete them): Device File Explorer
However, the device cache indicator shows the opposite: indicator1 Next, the cache indicator when the App is newly installed: indicator2
I have tried all methods. I have also checked that there are no files in getExternalCacheDir (). I have managed to influence the device cache indicator sometime, but I have not detected the pattern. Thank you very much in advance.