简体   繁体   English

禁用主页按钮可在当前屏幕停留4.0+

[英]Disable home button for staying in current screen for 4.0+

I have to create an app where the user can't go out of it. 我必须创建一个用户无法使用的应用程序。

The device is fixed in a car and should act as a login and info service. 该设备固定在汽车中,应充当登录和信息服务。 The user in the car should not go out of this app. 车上的用户不应退出此应用。

So I really have to find a solution to disable the home button. 因此,我真的必须找到一种禁用主页按钮的解决方案。

Can you give me any solutions? 你能给我解决办法吗?

You can not override home button. 您无法覆盖主页按钮。

Check this question 检查这个问题

Read the comment of Commansware :) 阅读Commansware的评论:)

Its not possible to disable home button in android 4.0 for security reasons. 出于安全原因,无法在android 4.0中禁用主页按钮。

If you want to control home button implement a home screen. 如果要控制主屏幕按钮,请实现主屏幕。

Check the below links 检查以下链接

Disable Home Button in Android ICS (4.0) 在Android ICS(4.0)中禁用主页按钮

Disabling home button on android 4.2 在Android 4.2上禁用主页按钮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM