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.
我有一个以后台模式运行的应用程序。当锁定屏幕处于活动状态时,我需要执行一些代码。如何从我的后台应用程序检测锁定屏幕何时处于活动状态?
除非您正在为越狱设备编写代码,否则您不能这样做。