有可能在onPause之前调用onSaveInstanceState
生活随笔
收集整理的這篇文章主要介紹了
有可能在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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 系统启动解析apk
- 下一篇: android杀掉进程顺序