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
If you have enabled Developer Options on your device, there is an option Do not keep activities that will help test onRestoreInstanceState().
onRestoreInstanceState()