how is it possible that context.getApplicationContext().getCacheDir()
returns null
? As far as I know the internal cache directory should always exist.
Thanks!
Cache files are stored in C:/Documents and Settings/<UserName>/Local Settings/Temporary Internet Files. You can also discover the person's cookies in a similar location, C:/Documents and Settings/<User Name>/Cookies.
The cache directory is where files are stored during background uploads and after upload for quick access should you need to open the file from the network drive (Jungle Disk (Formerly Workgroup) and Desktop Edition users only).
maybe it returns null since you don't have enough internal storage? try to also use getExternalCacheDir
also , if it doesn't work , simply go to the path.
the standard is that it should give you the path "/data/data/YOUR_APP_PACKAGE_NAME/cache/" , and if you want the external storage cache , it should give you the path "EXTERNAL_STORAGE_PATH/Android/data/YOUR_APP_PACKAGE_NAME/cache/" .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With