退出和后退按钮的实现

发布于 2024-09-25 08:40:09 字数 80 浏览 0 评论 0原文

退出按钮或后退按钮只能在我的应用程序中实现。但我希望这两种实现都在我的应用程序中。所以,请给我提出一个解决方案。

提前致谢..:)

Either exit button or back button only can be implemented in my application.But i want both the implementations in my application. So,Please propose me a solution.

Thanks in Advance..:)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

儭儭莪哋寶赑 2024-10-02 08:40:09

请阅读 Reto Meier 关于 Android 应用中“退出”的博文:

http://blog.radioactiveyak.com/2010/05/when-to-include-exit-button-in-android.html

摘要:不要将“退出按钮”放在安卓应用程序。

Please read Reto Meier's blogpost on 'exit' in Android apps:

http://blog.radioactiveyak.com/2010/05/when-to-include-exit-button-in-android.html

Summary: Don't put an 'exit button' in an Android app.

眼泪也成诗 2024-10-02 08:40:09

试试这个:

syste.exit(0);

Try this instead:

syste.exit(0);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文