android 监听解锁事件

KeyguardManager keyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);

keyguardManager.inKeyguardRestrictedInputMode();//=true;已锁;false未锁;

你可能感兴趣的:(Android)