title: Enable/disable Lockscreen Widgets since Android 4.2
body: <p>I am trying to add custom widget on <a href="http://developer.android.com/about/versions/android-4.2.html#Lockscreen" rel="nofollow">Lockscreen</a> (Android 4.2 and above). </p>
  
  <p>I understand I have to add attribute android:widgetCategory to widget XML file. But what I don´t understand, how to enable/disable it. </p>
  
  <pre><code>&lt;appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
  ...
  android:widgetCategory="keyguard|home_screen"&gt;
  &lt;/appwidget-provider&gt;
  </code></pre>
  
  <p>I thought I just enable it and after device is lock, it will appear there and when I disable it, it will not appear after device is lock.</p>
  
  <p>Thank you for any help in advance.</p>