How to simulate killing activity to conserve memory?

后端 未结 8 1741
清酒与你
清酒与你 2020-12-15 15:22

Android doc say:

\"When the system, rather than the user, shuts down an activity to conserve memory, ... \"

But how to simulate

8条回答
  •  离开以前
    2020-12-15 16:11

    Good answers here.

    Now, residing in the distant future, using Instant Run in Android Studio will also trigger a save and restore when activities are restarted with code changes.

提交回复
热议问题