Android的 - 激活系统钥匙锁(又称锁屏) [英] Android - Activation of the system key lock (aka lock screen)

查看:172
本文介绍了Android的 - 激活系统钥匙锁(又称锁屏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要激活Android的系统钥匙锁(一个你当你preSS的的关机的/ *挂断*键)。在这里看到:

I have to activate android's system key lock (the one you get when you press the power off/*hang up* button). See here:

我已经浏览过的文档,但一切我发现是 PowerManager的 KeyguardManager 。这两个似乎没有解决: - (

I already browsed the docs but everything I found was PowerManager and KeyguardManager. Both seem not to be the solution :-(.

所以,每个人都知道如何做到这一点从Android应用程序? (如有特殊权限是必需的,这是没有问题的,但是改变设备的设置是不是一个解决办法...)

So, does everyone know how to achieve that from a android application? (If special permissions are required, that is no problem but changing the device's settings is not a solution...)

修改:还是没有人知道这是绝对不可能的呢?顺便说一句。与发送键克雷格斯解决方案不工作了(见注释)。

EDIT: Or does someone know that this is definitely not possible at all? Btw. craigs solution with sending keys does not work anymore (see comments).

推荐答案

我一直在寻找一个答案了一段时间的确切同样的问题。显然,2.0后开始拆除设备管理权限的应用水平。但随着升级Froyo - 2.2设备策略管理器发现给予我们开发了大量的行政级别控制

I have been searching for an answer to the exact same question for a while. Apparently, after 2.0 onwards the device manager privileges for the app level were removed. But with Froyo - 2.2 the device policy manager is revealed granting us developers a multitude of administrative level controls.

http://developer.android.com/guide/topics/管理/设备admin.html

这篇关于Android的 - 激活系统钥匙锁(又称锁屏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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