3
I need to block that arrow so that the user does not come back, anyone knows how? Thanks in advance.
3
I need to block that arrow so that the user does not come back, anyone knows how? Thanks in advance.
9
Just create the onBackPressed method and don’t charm the super of it, leaving only blank the body of the function. Ai every time the user presses the back button, nothing will happen.
@Override
public void onBackPressed() {
// não chame o super desse método
}
Obs.: this method should only be written in Activity
.
Browser other questions tagged android
You are not signed in. Login or sign up in order to post.
thanks, that’s just what I needed!
– daniel12345smith