设立UI不可被锁住

设置UI不可被锁住public void resetLock() {boolean pattern Settings.Secure.putInt(getContentResolve

设置UI不可被锁住

public void resetLock() {    boolean pattern = Settings.Secure.putInt(getContentResolver(),Settings.Secure.LOCK_PATTERN_ENABLED, 0);boolean password = Settings.Secure.putLong(getContentResolver(), "lockscreen.password_type",DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);}

不知道立即锁屏要如何做?DeviceManager总是出现Security异常