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释放资源
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释放资源