简体   繁体   English

在Android中如何阻止用户按住主页按钮显示最近启动的应用程序?

[英]In Android how do I prevent the user from holding the home button to display recently launched apps?

In Android how do I prevent the user from holding the home button to display recently launched apps? 在Android中如何阻止用户按住主页按钮显示最近启动的应用程序?

I'm assuming I need to override the onKeyDown method or have an intent filter in the Android Manifest? 我假设我需要覆盖onKeyDown方法或在Android Manifest中有一个intent过滤器?

This is a duplicate of Home button disable 这是Home按钮禁用的副本

These two questions achieved what I needed: 这两个问题实现了我所需要的:

Home button disable 主页按钮禁用

I had to do this as well Disable Lock Screen 我不得不这样做也禁用锁定屏幕

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

相关问题 如何防止单击“主页”按钮进入主屏幕(跳板)? - How to prevent click on Home button from going to home screen (springboard)? Android如何防止后退按钮退出应用程序(按下主页按钮后) - Android How to prevent back button from quitting application (after home button pressed) 如果最近发送了通知,如何防止再次发送该通知? - How can I prevent a notification from sending again if it was recently sent? 防止用户在Eclipse中按住键 - Prevent User from holding key down in Eclipse 如何覆盖按钮显示主页 - How can I override the button display home 如何防止用户在android studio中从键盘输入特定字符? - How do I prevent user from typing specific characters from the keyboard in android studio? Android表单验证-如何防止在按下按钮时空字段使我的应用程序崩溃? - Android Form Validation - How do I prevent a null field from crashing my application on button press? 在Java中,如何写入我最近读取的文件? - In Java, how do I write to a file I recently read from? 如何将用户锁定在主目录中 - How do I Lock user in home directory 如何收听特定的按钮按下和主视图用户交互? - How do I listen for specific button presses, and home view user interactions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM