@Override public boolean dispatchKeyEvent(KeyEvent event) { // menuUtils.createTwoDispatcher(event); if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { Intent intent = new Intent(); intent.setAction("android.intent.action.MAIN"); intent.addCategory("android.intent.category.HOME"); startActivity(intent); } return false; }
http://www.devdiv.com/forum.php?mod=viewthread&tid=177477&page=1#pid881145