26 How to actively release the system’s lost memory in the application¶
To ensure that the application has enough memory available, you can actively release system’s lost memory as follows.
- Download the aar file and push it to the Assets\Plugins\Android path in Unity Project.
Download link of aar file: https://drive.google.com/file/d/1Mxc6y7c6MKYzPgZHEiZj9M9nCNTv3AGs/view?usp=sharing
- Call the following code at the appropriate lifecycle, such as Start( ), onApplicationPause( ).
AndroidJavaObject utils = new AndroidJavaObject("com.picovr.lib.Utils"); Boolean isSetSuc = utils.Call<Boolean>("memRefresh");