大家好,我最近在调试代码,系统是android2.1
发现在有的时候(几率不大),我按1下menu 键,menu菜单无法从Home界面弹出。我经过调试,发现从framework发到launcher(home界面)的menu key down事件有的时候无法被捕获,但是framwork中的log显示它已经将数据发送到这个窗口了(如下)01-22 09:50:05.941 V/WindowManager_DEBUG( 955): Dispatching to Window{4382dd20 com.android.launcher/com.android.launcher.Launcher paused=false}: KeyEvent{action=0 code=82 repeat=0 meta=0 scancode=139 mFlags=72}
01-22 09:50:05.941 V/WindowManager_DEBUG( 955): Delivering key 82 to Window{4382dd20 com.android.launcher/com.android.launcher奇怪的是key up可以被捕获,这个 key down怎么有的时候不能被捕获呢?
有知道的大哥吗?
发现在有的时候(几率不大),我按1下menu 键,menu菜单无法从Home界面弹出。我经过调试,发现从framework发到launcher(home界面)的menu key down事件有的时候无法被捕获,但是framwork中的log显示它已经将数据发送到这个窗口了(如下)01-22 09:50:05.941 V/WindowManager_DEBUG( 955): Dispatching to Window{4382dd20 com.android.launcher/com.android.launcher.Launcher paused=false}: KeyEvent{action=0 code=82 repeat=0 meta=0 scancode=139 mFlags=72}
01-22 09:50:05.941 V/WindowManager_DEBUG( 955): Delivering key 82 to Window{4382dd20 com.android.launcher/com.android.launcher奇怪的是key up可以被捕获,这个 key down怎么有的时候不能被捕获呢?
有知道的大哥吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货