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 DevicePolicyManager
class. Can anybody explain how to lock our device with a given PIN or Password? Thank you...
Asked
Active
Viewed 96 times
0

Anoop S
- 141
- 1
- 12
-
Indication : lockNow. – shemsu Mar 17 '14 at 22:21
-
@SoothSayer What are the permissions needed for using this function...? – Anoop S Mar 20 '14 at 18:54
-
There is not permissions, you have to create a /res/xml/admin.xml file and define the uses-policies, and a Receiver. Go here : http://developer.android.com/reference/android/app/admin/DeviceAdminReceiver.html – shemsu Mar 21 '14 at 13:42
-
@SoothSayer Thanks friend. I have solved my question using this link: http://stackoverflow.com/questions/19745890/how-do-i-lock-phone-programmatically-android And thanks for your support. – Anoop S Mar 23 '14 at 21:23