How to disable the home button functionality in Android mobile and we can set some other functions for the Home button? Can someone give me an example on this? You can override onKeyEvent of your activity
Public Boolean on Kidadown (Int kikod, Key Event event) {if (keycode == KeyEvent.KEYCODE_HOME) {// Call the desired code // If you want the home key to be disabled, return the following line // failure; } Return super.Condondon (keycode, event); }
No comments:
Post a Comment