a tiny question.
According to Android docs:
Preferably you should implement ComponentCallbacks2.onTrimMemory from ComponentCallbacks2 to gradually unload resources based on different levels of memory requirements. This API is available for API level 14 and above, so you should use this onLowMemory method as a reserve for older versions.
So. Will onLowMemory() be called by a higher API?
Clearly, I just want to call it from onTrimMemory() when the level is TRIM_MEMORY_COMPLETE , but I donβt want it to be called twice :)
thanks!
guy_m source share