本文介绍了在Android上拦截首页按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对此进行了很多研究,似乎在ICS之后,普通应用程序无法再拦截主页"按钮.
I've researched this a lot and it seems that after ICS normal applications can no longer intercept the Home Button.
但是,我看到诸如Go Locker之类的应用程序能够捕获主页"按钮.
However, I see apps like Go Locker that are able to trap the Home Button.
如果Go Locker没有拦截主屏幕按钮,他们在做什么以防止用户进入主屏幕?
If Go Locker isn't intercepting the home button, what are they doing to prevent the user from going to the home screen?
推荐答案
您无法拦截主页按钮.您不能禁用它.转到储物柜的方式是通过在其他应用程序上绘制其布局.它需要额外的许可.详情请参阅此链接.此处.
You cannot intercept the home button. You cannot disable it. The way how the go locker does it is by drawing its layout over other apps. It requires extra permission. See this link for more details here.
这篇关于在Android上拦截首页按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!