When I try to add back button removal code, it gives error.
I created a game with buildbox
, it's a drag and drop, and exported it to the Android Studio.
I want to disable the android back button.
Please, I need help on how to go about this.
When I try to add back button removal code, it gives error.
I created a game with buildbox
, it's a drag and drop, and exported it to the Android Studio.
I want to disable the android back button.
Please, I need help on how to go about this.
Add to your Activity class EMPTY onBackPressed
method:
override fun onBackPressed() {
}
@Override
public void onBackPressed() {
}
override onBackPressed()
method also remove super.onBackPressed()
like
@Override
public void onBackPressed() {
// super.onBackPressed();
}