Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
disableKeyguard()我有一个应用程序需要在调用or之前检测键盘保护的先前状态reenableKeyguard(),由用户设置!有没有办法完成这项任务?
disableKeyguard()
reenableKeyguard()
从文档
采用
((KeyguardManager)getSystemService(Context.KEYGUARD_SERVICE)).isKeyguardLocked()