I use a 3rd party audio library (written in native C, for iOS and Android), which uses a lot of memory, e.g. for loading user soundfonts of 1GB or more.
In Android I have always called some "Close" methods of this lib in "onDestroy" of the MainActivity.
Is there a way in XF to "detect" when an app is "finished" (rather than just temporarly sent into background) by the OS in order to do cleanup action before, ie. release resources, free memory ?