提前致谢.
解决方法 http://developer.android.com/guide/topics/fundamentals.html#clearstackThe finishOnTaskLaunch attribute
This attribute is like clearTaskOnLaunch,but it operates on a single activity,not an entire task. And it can cause any activity to go away,including the root activity. When it’s set to “true”,the activity remains part of the task only for the current session. If the user leaves and then returns to the task,it no longer is present.
..或类似的东西.我是androID的新手,刚刚通过这部分文档,我觉得它可能会有所帮助.
编辑:也许在onPause()中调用finish()?
总结以上是内存溢出为你收集整理的如何在Android中以编程方式终止应用程序?全部内容,希望文章能够帮你解决如何在Android中以编程方式终止应用程序?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)