How I can change working of home button in android? I want to when I click on home button I do some actions and after that application should go to background. How I can do that
Have you tried overriding onKeyDown()
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_HOME) { // ENTER CODE HERE return true; } return super.onKeyDown(keyCode, event); }