Android以编程方式关闭活动 [英] Android Closing Activity Programmatically

查看:55
本文介绍了Android以编程方式关闭活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

活动中从屏幕导航到离开的等效操作是什么?就像您按下后退"按钮时一样,该活动也不会显示.如何从活动内部调用它,使其自身关闭.

What is the equivalent operation within an activity to navigating away from the screen. Like when you press the back button, the activity goes out of view. How can this be called from inside an activity so that it closes itself.

推荐答案

完成活动后致电 并应关闭.

Call this when your activity is done and should be closed.

这篇关于Android以编程方式关闭活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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