Android 判断是否 锁屏状态
判断是否是锁屏状态:
public boolean isLockScreenOn() { KeyguardManager mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); if (mKeyguardManager.inKeyguardRestrictedInputMode()) { return true; } else { return false; } }
posted on 2013-02-28 09:01 program_lover 阅读(1430) 评论(0) 编辑 收藏 举报