How to lock android device by using programatically...Is it Possible?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4545079/lock-the-android-device-programatically">Lock the android device programatically</a>  </p>
</blockquote>



<p>Can any one help me how to lock a device using java Program, and here i am not using any UI means i am doing on the Service and user can not know what happening in his device.
by using msm Notification i am going to locking the device without user permission.
I Tried KeygardManager and DeviceAdmin but they are giving Security exceptions.</p>

<p>Is there any one to help.
Thanks in advance.</p>
