how is it possible that context.getApplicationContext().getCacheDir()
returns null
? As far as I know the internal cache directory should always exist.
Thanks!
how is it possible that context.getApplicationContext().getCacheDir()
returns null
? As far as I know the internal cache directory should always exist.
Thanks!
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/" .
Reading the thread posted at http://goo.gl/zipcZ it appears that an uninstall and re-install of the application resolves the issue in many cases. Additionally reading the thread, it does not appear that this is something you can fix as its an internal issue on some devices.