机器人,完成所有活动 [英] Android, Finish all activities

查看:118
本文介绍了机器人,完成所有活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要完成所有的Andr​​oid应用程序在运行活动被点击退出按钮时。我该怎么办呢?

我想:

  1. 在与退出选项,屏幕上的选项菜单。
  2. 当我点击退出菜单,应用程序应该关闭。
解决方案

您不应该在Android应用程序中实现的退出按钮。

读<一href="http://groups.google.com/group/android-developers/browse_thread/thread/1bf0f7a4a9c62edd/a0a4aedf21ae5f76?pli=1">http://groups.google.com/group/android-developers/browse_thread/thread/1bf0f7a4a9c62edd/a0a4aedf21ae5f76?pli=1

干杯

I need to finish all the activities running in an Android application when an exit button is clicked. How can I do that?

What I want:

  1. An option menu on screen with an EXIT option.
  2. When I click the Exit menu, the application should close.

解决方案

You should not implement an Exit button in an Android application.

Read http://groups.google.com/group/android-developers/browse_thread/thread/1bf0f7a4a9c62edd/a0a4aedf21ae5f76?pli=1

Cheers

这篇关于机器人,完成所有活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆