使用minSDK19上的默认系统屏幕锁定

时间:2017-10-17 14:41:04

标签: android lockscreen

是否有任何替代createConfirmDeviceCredentialIntent,以调用默认的屏幕锁定视图?

    KeyguardManager kgm = (KeyguardManager) getSystemService(this.KEYGUARD_SERVICE);
    Intent intent = kgm.createConfirmDeviceCredentialIntent("title", "description");
    if(intent != null) {
        startActivityForResult(intent, RESULT);
    }

我必须使用minSDK版本19.

0 个答案:

没有答案