I need to block that arrow so the user does not come back, does anyone know how? Thank you in advance.
I need to block that arrow so the user does not come back, does anyone know how? Thank you in advance.
Just create the onBackPressed method and do not charm its super, leaving only the body of the function blank. Anytime the user presses the back button, nothing will happen.
@Override
public void onBackPressed() {
// não chame o super desse método
}
Note: this method should only be written to Activity
.