问题描述
我已经创建了一个应用程序,可以使用DevicePolicyManager,resetPassword和lockNow()引脚code锁定手机。它完美的作品对我的Galaxy S和所有其他的手机,但不是在HTC Desire的。
I have created an app that can lock the phone with a pin code using DevicePolicyManager, resetPassword and lockNow(). It works perfectly on my Galaxy S and on all other phones but not on HTC Desire.
在一个欲望出现的销code屏幕,但你可以简单的preSS确定按钮,而无需输入引脚code和手机仍然会解锁。
On a Desire the pin code screen appears but you can simply press the ok button without entering the pin code and the phone will still unlock.
一个用户说,如果他不使用手机5分钟左右的锁定工作。有没有人有可能是错误的暗示,或做什么什么建议吗?
A user says that the lock works if he does not use the phone for about 5 minutes. Does anyone have a hint of what could be wrong, or any suggestion of what to do?
推荐答案
我认为这是对欲望的错误,但我发现了一个办法解决它通过锁定超时设置为1秒,锁定装置,然后设置锁定超时再次备份。
I consider this a bug on the Desire but I found a way around it by setting the lock timeout to 1 second, locking the device and then set the lock timeout back up again.
这篇关于Android的lockNow()上的HTC Desire失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!