Android ACTION_SCREEN_OFF 意图含义

Android ACTION_SCREEN_OFF intent meaning

在关于 ACTION_SCREEN_OFF 的 Google 文档中,他们写道:

This broadcast is sent when the device becomes non-interactive which may have nothing to do with the screen turning off. To determine the actual state of the screen, use Display.getState().

所以我问屏幕什么时候变成非交互式并且它仍然打开。

当您按下电源按钮锁定屏幕时(或者即使设备的屏幕灯因不活动而熄灭),此时它会进入 non-interactive 状态。

是的,设备将被打开。