Home > Q&A > body text
如题,android 如何判断当前处于熄屏状态?
PHPz2017-04-17 17:24:22
There is a system broadcast when the screen is off and on, and the corresponding broadcast action is Intent.ACTION_SCREEN_OFF和Intent.ACTION_SCREEN_ON
Intent.ACTION_SCREEN_OFF
Intent.ACTION_SCREEN_ON