SoftReference is very common for memory caching.
But Android Developers (http://developer.android.com/reference/java/lang/ref/SoftReference.html) says it is not efficient for such use case.
Then, how SoftReference works on Android? This talk will show how it works and when to use it.
Reference:
- SoftReference | Android Developers
http://developer.android.com/reference/java/lang/ref/SoftReference.html
- WeakReference | Android Developers
http://developer.android.com/reference/java/lang/ref/WeakReference.html
- MarkSweap.cpp
https://android.googlesource.com/platform/dalvik.git/+/android-4.4.4_r2.0.1/vm/alloc/MarkSweep.cpp