I\'m trying to create an application that allow the user to lock his android device with a password from a website. So i must find a method to lock the device programmatical
check of DevicePolicyManager, http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html
specifically, the resetPassword, and lockNow() methods.
please read the entire device admin tutorial to understand how to use DPM in context, http://developer.android.com/guide/topics/admin/device-admin.html
as for locking from the website. android c2dm is the preferred way to get push messages to the device. http://code.google.com/android/c2dm/
note however that this is intended for occasional "wake up" messages, not for any sort of 2-way communication between the device and some other entity.