title: Android - Activation of the system key lock (aka lock screen)
body: <p>I have to activate android's system key lock (the one you get when you press the <em>power off</em>/<em>hang up</em> button). See here:</p>
  
  <p><img src="https://farm4.static.flickr.com/3202/2849046033_fd42359cef.jpg" alt="img"></p>
  
  <p>I already browsed the docs but everything I found was <a href="http://developer.android.com/reference/android/os/PowerManager.html" rel="nofollow noreferrer">PowerManager</a> and <a href="http://developer.android.com/reference/android/app/KeyguardManager.html" rel="nofollow noreferrer">KeyguardManager</a>. Both seem not to be the solution :-(.</p>
  
  <p>So, does everyone know how to achieve that from a android application? (If special permissions are required, that is no problem but changing the device's settings is not a solution...)</p>
  
  <p><strong>EDIT</strong>: Or does someone know that this is definitely not possible at all? Btw. craigs solution with sending keys does not work anymore (see comments).</p>