限制home键的Andr​​oid 4.0 + [英] Restrict the home button Android 4.0 +

查看:184
本文介绍了限制home键的Andr​​oid 4.0 +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在启动应用程序的工作,在我所禁用的主页按钮事件。
我们怎样才能做到这一点在Android 4.0及以上。

I am working in an launcher application ,In which i have to disable the home button event. How can we do this in android 4.0 and above.

推荐答案

有没有办法拦截在Android home键,除非你让你的应用程序的主屏幕。这是出于安全原因,使恶意的应用程序无法接管你的设备通过覆盖所有可以退出按钮。 home键是一个肯定拍的方式,能够留下任何应用程序。

There is no way to intercept the home button on Android, unless you make your app the home screen. This is for security reasons, so that malicious apps cannot take over your device by overriding all the buttons that can exit. The home button is the one sure shot way to be able to leave any app.

如果你要处理的HOME按键,实现一个主屏幕。

If you want to handle the HOME button, implement a home screen.

有关详细信息,请检查下面的链接。通过commonsware检查答案

For more information check the link below. check the answer by commonsware

<一个href=\"http://stackoverflow.com/questions/10349685/not-able-disable-home-button-on-specific-android-devices\">Not具体的Andr​​oid设备能够关闭主页按钮

这篇关于限制home键的Andr​​oid 4.0 +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆