Issue in toggle recently launched apps for homekey long pressed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Issue in toggle recently launched apps for homekey long pressed

ソリューションへジャンプ
998件の閲覧回数
prasannakulkarni
Contributor IV

Hi All,

            we are using Android ICS (4.0.4) freescale imx6dq BSP. we are facing a problem in, opening recently launched apps when home key is long pressed. the code in PhoneWindowManager.java

if (down) {

1591                 if (repeatCount == 0) {

1592                     mHomePressed = true;

1593                 } else if ((event.getFlags() & KeyEvent.FLAG_LONG_PRESS) != 0) {

1594                     if (!keyguardOn) {

1595                         handleLongPressOnHome();

1596                     }

1597                 }

1598             }

       The red colored part of code is never called because we are not getting repeatCount > 0. very uncertainly once in a 100 times recently launched apps would be toggled and that time alone repeatcount will be 1 and event.getFlags() becomes 136. rest of the time repeatcount=0 and event.getFlags()=8. so how to solve this problem. we need to toggle recently launched apps for every homekey long press event..

ラベル(2)
0 件の賞賛
返信
1 解決策
880件の閲覧回数
prasannakulkarni
Contributor IV

Hi Yixing Kong ,

      Thanks for your response. I had solved somehow the issue... our only burning issue is that AudioFlinger now (as mentioned in Other thread). some more observations we have made on that issue.. when we disable touch sound and make a call then switch it is working perfectly ...

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
880件の閲覧回数
YixingKong
Senior Contributor IV

Prasanna

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the issue, can we close the discussion? If you still need help, please feel free to reply with an update to this discussion.

Thanks,

Yixing

0 件の賞賛
返信
881件の閲覧回数
prasannakulkarni
Contributor IV

Hi Yixing Kong ,

      Thanks for your response. I had solved somehow the issue... our only burning issue is that AudioFlinger now (as mentioned in Other thread). some more observations we have made on that issue.. when we disable touch sound and make a call then switch it is working perfectly ...

0 件の賞賛
返信