How to test code built to save/restore Lifecycle of an Activity?

后端 未结 5 1461
醉话见心
醉话见心 2020-12-13 09:01

How can I test all of the following methods code? I want to play scenarios when all of them are happening to see if my code works for save/restore process of an activity. So

5条回答
  •  庸人自扰
    2020-12-13 09:36

    If you have enabled Developer Options on your device, there is an option Do not keep activities that will help test onRestoreInstanceState().

提交回复
热议问题