关闭应用程序,并启动主屏幕上的Android [英] Close application and launch home screen on Android
本文介绍了关闭应用程序,并启动主屏幕上的Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个不同的活动。第一个启动第二个。在第二个活动,我称之为 System.exit(0)
,以强制关闭应用程序,而是先活动自动显示在应用程序返回家中,而不是屏幕。我怎样才能避免这种情况,并获得了应用程序返回到主屏幕?
I have two different activities. The first launches the second one. In the second activity, I call System.exit(0)
in order to force the application to close, but the first activity is automatically displayed instead of the application returning to the home screen. How can I avoid this, and get the application to return to the home screen?
推荐答案
您真的应该想想不退出应用程序。这不是多么的Android应用程序通常工作。
You should really think about not exiting the application. This is not how Android apps usually work.
这篇关于关闭应用程序,并启动主屏幕上的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文