title: How to lock an android device with a given PIN or Password?
body: <p>I want to lock the android device using a given PIN or Password. How can I do that? I have searched many pages. But they are not helpful. I heard about something called <code>DevicePolicyManager</code> class. Can anybody explain how to lock our device with a given PIN or Password? Thank you...</p>