首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

设立UI不可被锁住

2012-07-26 
设置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异常

热点排行