Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,说 A 的活动是启动器活动,从 A 调用 B,从 B 调用 C,我有超过 3 个活动。在 C 中,当我按下主页按钮并再次打开我的应用程序时,它会打开 C。但我希望它始终打开启动器活动。
然后在每个活动的 onPause() 回调方法中执行 finish()。即使您按下主页按钮,这也可以帮助您每次都将活动 A 作为启动器