title: Android Lock the screen in AppWidgetProvider out of an Activity
body: <p>How to create a simple widget that locks the screen without an <code>Activity</code>, only in an <code>AppWidgetProvider</code>?</p>
  
  <p><a href="https://stackoverflow.com/questions/11680291/lock-screen-for-android-is-not-working-properly-using-android/11680450#11680450">I've tried this solution</a> but the method <code>getSystemService</code> does not exist out of an <code>Activity</code> context.</p>
  
  <p>Thank you very much for every clarifications.</p>