How to change the lock screen type programmatically?

不羁岁月 提交于 2019-12-11 12:54:16

问题


I am working on an Android Application where I need to access the different lock screens(e.g.- pin lock,pattern lock etc.) and also able to change it using my application upon some event.

I have searched a lot over it but so far I am stuck. Please if anyone can help me out with this problem. Thanks


回答1:


See if this page helps:Android Settings

You should be able to access the inner elements if you watch the logcat output keenly. Still I am not sure whether you will be able to set a patter or PIN lock as the user needs to be involved in it.

But I guess you should be able to change the type from "slide lock" or "No lock" as just the elements needs to be selected.



来源:https://stackoverflow.com/questions/22709039/how-to-change-the-lock-screen-type-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!