Android-HomeKey-Locker
======================
Utility to disable **HOME KEY** in Android Activity.
As there are a lot questions about "how to disable home button in android?" on `Stack Overflow`, such as
* [how to disable home button in android?][4]
* [Android - Is It possible to disable the click of home button][5]
* [How to disable Home and other system buttons in Android?][6]
This library provide a easy way to do this job.
**NOTICE**
This library doesn't support devices with **VIRTUAL HOME KEY**, such as
+ Galaxy Nexus
+ Nexus 4
+ Nexus 5
+ Nexus 7
Demo Application
================
The demo application (the source is in the repository) has been published onto Google Play for easy access:
<img src="HomeLockerSample/art/device-home-key-unlocked-half.png" width="300px" />
<img src="HomeLockerSample/art/device-home-key-locked-half.png" width="300px" />
[![Get it on Google Play][7]][3]
Usage
=====
in Activity
```java
HomeKeyLocker homeKeyLocker = new HomeKeyLocker();
homeKeyLocker.lock(this);
// home key is locked since then
homeKeyLocker.unlock();
// home key is unlocked since then
```
Known Issues
============
Side Effect
-----------
Lock **HOME KEY** will also lock **BACK KEY** and **MENU KEY**.
Work
----
* Android 4.4.2
* CM11 (Google Nexus S, Moto Defy)
* Android 4.0.3
* Moto XT910
* Huawei C8812
* Android 4.0.4
* ZTE V889M
* Android 2.3.5
* HTC Desire S (Sense 3.0)
Not Work
--------
* [MIUI][8]
* [Flyme][9]
License
=======
Copyright 2014 shaobin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[1]: HomeLockerSample/art/device-home-key-unlocked-half.png
[2]: HomeLockerSample/art/device-home-key-locked-half.png
[3]: https://play.google.com/store/apps/details?id=io.github.homelocker.app
[4]: http://stackoverflow.com/questions/17183905/how-to-disable-home-button-in-android
[5]: http://stackoverflow.com/questions/2162182/android-is-it-possible-to-disable-the-click-of-home-button
[6]: http://stackoverflow.com/questions/17549478/how-to-disable-home-and-other-system-buttons-in-android
[7]: http://www.android.com/images/brand/get_it_on_play_logo_small.png
[8]: http://www.miui.com/
[9]: http://flyme.meizu.com/flysys/en/system.jsp
没有合适的资源?快使用搜索试试~ 我知道了~
Android代码-屏蔽home按键
共43个文件
png:15个
xml:10个
gradle:4个
需积分: 48 25 下载量 162 浏览量
2019-08-06
02:12:40
上传
评论
收藏 284KB ZIP 举报
温馨提示
Android-HomeKey-Locker Utility to disable HOME KEY in Android Activity. As there are a lot questions about "how to disable home button in android?" on Stack Overflow, such as how to disable home button in android? Android - Is It possible to disable the click of home button How to disable Home and other system buttons in Android? This library provide a easy way to do this job. NOTICE This library doesn't support devices with VIRTUAL HOME KEY, such as Galaxy Nexus Nexus 4 Nexus 5 Nexus 7 Demo
资源推荐
资源详情
资源评论
收起资源包目录
Android代码-屏蔽home按键.zip (43个子文件)
Android-HomeKey-Locker-master
gradlew 5KB
settings.gradle 46B
LICENSE 11KB
gradle
wrapper
gradle-wrapper.properties 230B
gradle-wrapper.jar 49KB
README.md 3KB
gradlew.bat 2KB
HomeLockerLib
proguard-rules.txt 667B
src
main
AndroidManifest.xml 350B
res
drawable-hdpi
ic_launcher.png 9KB
drawable-mdpi
ic_launcher.png 5KB
drawable-xxhdpi
ic_launcher.png 19KB
drawable-xhdpi
ic_launcher.png 14KB
values
strings.xml 79B
styles.xml 518B
java
io
github
homelocker
lib
HomeKeyLocker.java 2KB
.gitignore 7B
build.gradle 526B
gradle.properties 853B
.gitignore 283B
HomeLockerSample
proguard-rules.txt 667B
src
main
AndroidManifest.xml 716B
res
drawable-hdpi
ic_launcher.png 2KB
menu
main.xml 411B
drawable-mdpi
ic_launcher.png 1KB
layout
activity_main.xml 798B
drawable-xxhdpi
ic_launcher.png 5KB
drawable-xhdpi
ic_launcher.png 3KB
values-w820dp
dimens.xml 358B
values
strings.xml 229B
styles.xml 194B
dimens.xml 216B
drawable-xxxhdpi
ic_launcher.png 6KB
java
io
github
homelocker
app
MainActivity.java 2KB
art
device-home-key-unlocked.png 19KB
device-home-key-unlocked-half.png 10KB
device-home-key-locked-half.png 10KB
web_res.png 32KB
feature-graphic.png 70KB
device-home-key-locked.png 19KB
.gitignore 7B
build.gradle 840B
build.gradle 312B
共 43 条
- 1
资源评论
weixin_39840588
- 粉丝: 448
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功