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释放资源
在极端情况下,系统可能会直接终止应用进程而不会调用onDestroy方法。因此,在onStop中释放可能导致内存泄漏的资源变得尤为重要。
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释放资源

被折叠的 条评论
为什么被折叠?