能力值:
( LV5,RANK:60 )
|
-
-
2 楼
归根结底是重载函数
boolean dispatchKeyEvent(KeyEvent event)
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
修改一个文件就可以
system/usr/keylayout/keypad-zeus.kl
把有home字的这段去掉
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_HOME) {
Log.e("", "home key pressed");
}
return super.onKeyDown(keyCode, event);
}
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
可以把它拦截:
http://blog.csdn.net/dadoneo/article/details/8185469
|
|
|