title: Get "Screen lock" setting in Android programatically
body: <p>Is there a way of getting the current setting for Settings-->Security-->Screen Lock? It is the setting that can be "None", "Slide", "PIN", etc. I am not interested in changing it, just knowing the current one.</p>
  
  <p>I'm only interested in telling "None" from any of the others, so that would work too. I have seen that for API 23 they have added <a href="https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#setKeyguardDisabled(android.content.ComponentName,%20boolean)" rel="nofollow"><code>DevicePolicyManager.setKeyguardDisabled()</code></a>. I am looking for the equivalent getter, ideally for API 14 onwards.</p>