Open nichollastri opened 4 years ago
When you use cacheDir, it has a limitation. If you are compressing multiple images, you can get a memory leak. However if you use getExternalCacheDir(), you can use as much storage as it is available on the sd-card/Internal Storage.
(https://developer.android.com/reference/android/content/Context.html#getExternalCacheDir)
When you use cacheDir, it has a limitation. If you are compressing multiple images, you can get a memory leak. However if you use getExternalCacheDir(), you can use as much storage as it is available on the sd-card/Internal Storage.
(https://developer.android.com/reference/android/content/Context.html#getExternalCacheDir)