Android密钥积累问题?

时间:2011-08-27 06:12:03

标签: android

我的密钥有问题:

当我的应用程序加载时,我多次按回键(约20次)。 通过logcat,有时我看到:

Key pressed - back key 
Key Released - back key
Key pressed - back key
Key Released - back key

有时没有记录在这里。但是当装载完成时,我会看到:

Key pressed - back key 
Key Released - back key
Key pressed - back key
Key Released - back key
Key pressed - back key 
Key Released - back key
Key pressed - back key
Key Released - back key
...
enough 20 times

看起来像手机将它保存到缓冲区:(

问题是,如何删除此缓冲区? :((

1 个答案:

答案 0 :(得分:0)

为什么不覆盖onBackPressed(),如果您的活动尚未加载,请不要致电super