Android。 OS 从内存中释放应用程序的捕捉时刻
Android. Catching moment when OS releases application from memory
有没有什么方法或类似的东西,我可以从内存中释放我的应用程序?
我需要在它发生之前保存一些数据。所以如果在 Android 中不可能,请给我一些建议以其他方式解决这个问题。
Is there any method or smth like that, where I can catch releasing my app from memory?
没有
give me some advices to solve this problem by another way
数据变化时保存数据。内存中的数据只是一个缓存;如果您需要数据在流程结束后继续存在,则需要在数据发生变化时保存该数据。
有没有什么方法或类似的东西,我可以从内存中释放我的应用程序?
我需要在它发生之前保存一些数据。所以如果在 Android 中不可能,请给我一些建议以其他方式解决这个问题。
Is there any method or smth like that, where I can catch releasing my app from memory?
没有
give me some advices to solve this problem by another way
数据变化时保存数据。内存中的数据只是一个缓存;如果您需要数据在流程结束后继续存在,则需要在数据发生变化时保存该数据。