How to make it so that at a certain action it was possible to return to the old activation of calling it again, that is, roughly speaking, to perform the action of the button back, otherwise, if you open the old startActivity() again via startActivity() again, then when you press the button, it returns to the previous ones Activation from which you moved.

  • 3
    You have not accepted a single answer to your questions, you will not be answered if you do not accept the correct answers. - Vladyslav Matviienko

1 answer 1

  1. call finish() on the current Activity to close.
  2. call onBackPressed() on the current Activity to close.