Files stored in an external cache are not deleted when deleted

It says that files saved on getExternalCacheDir()will be deleted upon deletion.

I posted my downloaded files there. Everything works fine with 3 devices. But with one Samsung Galaxy S2 with Android 4.0, these files are not deleted. What could be the reason for this?

+3
source share
1 answer

Looking at the getExternalCacheDir () documentation:

, , , , . JELLY_BEAN_MR1 , Environment.isExternalStorageEmulated() - true. , , , , getCacheDir().

, Android 4.2 . . . , .

0

All Articles