由网友(觉得多事)分享简介:我有两个不同的活动。第一个启动第二个。在第二个活动,我称之为 System.exit(0),以强制关闭应用程序,而是先活动自动显示在应用程序返回家中,而不是屏幕。我怎样才能避免这种情况,并获得了应用程序返回到主屏幕?I have two different activities. The first launches...
我有两个不同的活动。第一个启动第二个。在第二个活动,我称之为 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.
相关推荐
最新文章