如何从Continuum活动发出活动 [英] how to send out an activity from the Continuum of activities

查看:76
本文介绍了如何从Continuum活动发出活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事实:

因为你知道如果我们使用Intent,我们可以在活动之间移动。他们就像一条链子。

问题:

我在我的应用程序中创建了一个Activity。此活动用于登录。

信息被发送到服务器,如果它们是正确的,则出现第二个活动。

但每个设备都有一个后退按钮。如果用户点击后退按钮,则会显示上一个活动!

问题:

我怎样才能销毁之前的活动?

用户不要必须看到之前的活动

fact :
as you know we can move between activities if we use the Intent . they are like a chain .
problem :
i created an Activity in my application . this Activity is used for login .
information are Sent to server , if they are Correct the Second Activity appears.
but every device has a back button . if user clicks on back button the previous Activity appears!
Question :
how can i Destroy َthe previous Activity ?
users dont have to see previous Activity

推荐答案

看看这个: Android:阻止返回上一个活动 [ ^ ]


这篇关于如何从Continuum活动发出活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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