a tiny question.
According to the
Preferably, you should implement ComponentCallbacks2.onTrimMemory from ComponentCallbacks2 to incrementally unload your resources based on various levels of memory demands. That API is available for API level 14 and higher, so you should only use this onLowMemory method as a fallback for older versions
Yes, absolutely. It is not deprecated at any API level. You should be implementing both
onLowMemory() for the sake of keeping the system healthy.
These are covered in more detail in the video: Trimming and Sharing Memory (Android Performance Patterns Season 3 ep5).