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..
解決済! 解決策の投稿を見る。
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 ...
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
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 ...