Activity A 跳转到 Activity B,生命周期的执行过程
HOME键的执行顺序:onPause->onStop->onRestart->onStart->onResume
BACK键的顺序: onPause->onStop->onDestroy->onCreate->onStart->onResume
onPause不要做太耗时的工作
Activity A 跳转到 Activity B,生命周期的执行过程
最新推荐文章于 2024-05-02 22:42:32 发布
Activity A 跳转到 Activity B,生命周期的执行过程
HOME键的执行顺序:onPause->onStop->onRestart->onStart->onResume
BACK键的顺序: onPause->onStop->onDestroy->onCreate->onStart->onResume
onPause不要做太耗时的工作