我想让方法执行,如果用户退出我的应用程序(退出,而不仅仅是通过点击主页按钮退出),并重新启动。
我使用了 onRestart() 和 onDestroy() 和 onStop().
onRestart()
onDestroy()
onStop()
但他们没有给我我想要的东西。
我希望你能顺利理解我的问题。
我想你想要的是使用 "onRestart("和 "onDestroy("和 "onStop(")"。onPause() 和 onResume() 很可能
onPause()
onResume()