标签:android
mWakeLock.acquire();
//释放屏幕常亮锁
if(null != mWakeLock) {
mWakeLock.release();
}
//屏幕解锁
KeyguardManager keyguardManager = (KeyguardManager)getSystemService(KEYGUARD_SERVICE);
KeyguardLock keyguardLock = keyguardManager.newKeyguardLock(LOCK_TAG);
keyguardLock.disableKeyguard();
//屏幕锁定
keyguardLock.reenableKeyguard();
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
android 解锁 点亮屏幕,布布扣,bubuko.com
标签:android
原文地址:http://blog.csdn.net/lian_1988/article/details/38270993