除去屏幕的Android状态检修? [英] Remove state maintenance of screens Android?
问题描述
我对Android应用非常新的开发人员,所以请忽略,如果在我的问题的一些技术错误。
I am very new developer for Android application so please ignore if there is some technical mistakes in my question.
我有五个屏幕(主页,SR-1,SR-2,SR-3,SR-4)在我的Android应用程序,我可以给时间切换任何屏幕。
I have five screen (Home, SR-1, SR-2,SR-3,SR-4 ) in my Android application and I can switch any screen at give time.
当我们pressing设备后退按钮将采取我们的previous屏幕,在这里我最后。
When we are pressing device back button it will take we to the previous screen where I was lastly.
但每当我pressing首页会带我到登陆界面如果在这种状态下,我pressing设备后退按钮,我会带我到previous的看法,但我要删除此状态检修。
But whenever I am pressing Home it will take me to landing screen If in this state I am pressing device back button I will take me to previous view but I want to remove this state maintenance.
(即:当我来到家里,我pressed后退按钮它就会从我的应用程序退出)
(i.e. : When I am coming to Home and I pressed back button It will exit from my application)
感谢您
推荐答案
每一项活动:你可以在AndroidManifest.xml中添加
for each activity: you can add in AndroidManifest.xml
<activity android:name="nameofActivity"
android:noHistory="true"></activity>
这篇关于除去屏幕的Android状态检修?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!