PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
boolean isScreenOn = pm.isScreenOn();
isScreenOn = true //代表亮屏
isScreenOn = false //代表灭屏
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
boolean isScreenOn = pm.isScreenOn();
isScreenOn = true //代表亮屏
isScreenOn = false //代表灭屏