[英]Is it possible that First and Second activity will not show again when clicked the button in third activity?
Is it possible that First and Second activity will not show again when clicked the button in third activity?单击第三个活动中的按钮时,第一个和第二个活动是否可能不会再次显示?
Before I clicked the button in third activity, first and scond activity still can see and go back to previous.在我点击第三个活动中的按钮之前,第一个和第二个活动仍然可以看到 go 回到上一个。
Please can someone share code with me.?请问有人可以和我分享代码吗? Thanks.
谢谢。
When you going to next activity add this in intent.当您进行下一个活动时,将其添加到意图中。
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
also add finish();还添加完成();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.