首先我们要知道activity的生命周期有
onResume
如果从a跳转到b界面 a 会调用onPause() b 调用 onCreate() onStart(),onResume(); 这个时候b覆盖了窗体 a会执行onStop方法 如果b 是透明对话框的话 a就不会调用onStop()方法