简体   繁体   English

单击第三个活动中的按钮时,第一个和第二个活动是否可能不会再次显示?

[英]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.

相关问题 如何根据第一活动数据(单击单选按钮)从第二活动转到第三活动或第四活动? - How to go from second activity to third activity or fourth activity based on first activity data (Radio button clicked)? Android-单击按钮以显示具有ListView的活动时,应用程序崩溃 - Android - App crashes when button is clicked to show an activity with listview 在Android中向“第二个活动”添加了一个“返回至第一个”按钮。 现在,导航到第二个活动时应用程序崩溃 - Added A Button To Second Activity In Android To Return To First. Now App Crashes When Navigating To Second Activity 单击活动1中的按钮,如果单击该按钮,则在活动3中显示textview… - click button in activity 1 and if the button clicked show textview … in activity 3 检查首次启动android时是否在活动上单击了一个按钮 - Check if a button is clicked on an activity on first launch android 单击按钮时以及如何重新启动应用程序时如何交换两个整个活动,然后显示交换更改 - How to swap two whole activity when button is clicked and when application start again then display that swapping changes 在点击按钮以外的其他活动上显示文本 - Show text on other activity than the button clicked 在android studio中的第二个活动中打开第三个活动 - open third activity in second activity in android studio 将数据从第二个活动传递到第三个活动 - Passing data from second activity to third activity 单击按钮时从“活动”移动到“片段” - Move from Activity to Fragment when button clicked
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM