Issue in toggle recently launched apps for homekey long pressed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in toggle recently launched apps for homekey long pressed

Jump to solution
621 Views
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..

Labels (2)
0 Kudos
1 Solution
503 Views
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 ...

View solution in original post

0 Kudos
2 Replies
503 Views
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 Kudos
504 Views
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 Kudos