@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

相关文章:

  • 2021-11-03
  • 2021-12-03
  • 2021-11-03
  • 2021-11-03
  • 2021-11-03
  • 2021-11-03
  • 2021-11-03
猜你喜欢
  • 2021-09-16
  • 2021-12-08
  • 2021-11-03
  • 2021-12-03
  • 2021-04-27
  • 2021-11-03
  • 2021-11-03
相关资源
相似解决方案