Android 拦截键盘事件

 @Override
    public boolean dispatchKeyEvent(KeyEvent event) {
        Log.e("longjiang", event.getKeyCode()+"");
        return super.dispatchKeyEvent(event);

    }

你可能感兴趣的:(android,java,开发语言)