For my Android app, i have to download image from server and i am keeping it in internal cache directory (or External cache directory if it is available then). Sometimes some of my users phones gets crashed because of
context.getExternalCacheDir() returns null
So I planned to use default cache directory (ie internal) for this purpose. So my question is whether is there any chance for
context.getCacheDir() returns null?
If it is there, what is the best way to store some cache images without using Storage Permission?