Clear list of Activity

Asked

Viewed 59 times

0

I need that when I arrive in the last screen of questions of my application I can only return to the menu screen that is the screen after the main and only in this final screen of questions that I can reset the list . Thank you !

1 answer

0


Have you ever thought about using Flag? For example: Intent telaMenu = new Intent(RegistroActivity.this, MenuActivity.class); telaMenu.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);startActivity(telaMenu);

  • I saw about however it didn’t work keep coming back to the interior screen

  • try adding this code I gave you

Browser other questions tagged

You are not signed in. Login or sign up in order to post.