问题
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