Simulate killing of activity in emulator

前端 未结 7 2006
误落风尘
误落风尘 2020-12-01 06:26

I would like to test out onSaveInstanceState and onRestoreInstanceState for my app on the emulator.

I have found this, which says that we c

7条回答
  •  -上瘾入骨i
    2020-12-01 07:10

    From android doc, http://developer.android.com/reference/android/content/ComponentCallbacks.html#onLowMemory()

    This is triggered by the system. I think you can set the device ram size lower during creating an android virtual device. (In Hardware, choose "Device ram size")

提交回复
热议问题