Basically android back button has override method or event. You can handle back button action according to your need on this event; Paste the following code in your Activity and Now your back button is disabled.
@Override publicboolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { if (keyCode == KeyEvent.KEYCODE_BACK) { } } // return super.OnKeyDown(KeyCode,event); // This code will stop your back button work returnfalse; }
Liked By
Write Answer
How to disabled back button in android
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
13-Feb-2015Basically android back button has override method or event. You can handle back button action according to your need on this event; Paste the following code in your Activity and Now your back button is disabled.