是否有任何替代createConfirmDeviceCredentialIntent
,以调用默认的屏幕锁定视图?
KeyguardManager kgm = (KeyguardManager) getSystemService(this.KEYGUARD_SERVICE);
Intent intent = kgm.createConfirmDeviceCredentialIntent("title", "description");
if(intent != null) {
startActivityForResult(intent, RESULT);
}
我必须使用minSDK版本19.