title: How to turn off screen of android phone programmatically?
body: <p>How to turn off screen of android phone programmatically? I tried using following code with no luck   </p>
  
  <pre><code>PowerManager mPowerManager = (PowerManager) getSystemService(POWER_SERVICE);
  mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MYTAG");
  
  mWakeLock.acquire();
  </code></pre>