首页 > 代码库 > android 判断屏幕是否亮着

android 判断屏幕是否亮着

 

PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);  boolean screen = pm.isScreenOn();

 

android 判断屏幕是否亮着