有可能在onPause之前调用onSaveInstanceState

In extreme cases, the system might simply kill your app process without calling the activity's final onDestroy() callback, so it's important you use onStop() to release resources that might leak memory.

系统会杀掉进程而不调用onDestroy,因此最好在onStop释放资源

你可能感兴趣的:(有可能在onPause之前调用onSaveInstanceState)