title: How to confirm device credential before Android 5.0 (API 21)?
body: <p>I have a use case that requires the user to confirm device credential, and the createConfirmDeviceCredentialIntent method in KeyguardManager perfectly meets my need. However, this method was added since API 21.(<a href="http://developer.android.com/reference/android/app/KeyguardManager.html#createConfirmDeviceCredentialIntent(java.lang.CharSequence,%20java.lang.CharSequence)" rel="noreferrer">reference link</a>) So how can I achieve the same functionality before Android 5.0? I also want to support versions like Android 4.X.</p>
  
  <p>Thanks!</p>