android 判断屏幕是否亮着

PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);  
boolean screen = pm.isScreenOn();
原文地址:https://www.cnblogs.com/l2rf/p/4078674.html