Guest User

Untitled

a guest
Oct 22nd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. getSupportFragmentManager().popBackStack(null,
  2. FragmentManager.POP_BACK_STACK_INCLUSIVE);
  3.  
  4. Intent intent = new Intent(Your_Current_Activity.this,
  5. Your_Destination_Activity.class);
  6. intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK
  7. |Intent.FLAG_ACTIVITY_CLEAR_TOP);
  8. startActivity(intent);
  9. Hope this will help you.
Add Comment
Please, Sign In to add comment