android 判断屏幕是否亮着

 

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

 

posted on 2014-11-06 14:13  屌丝迷途  阅读(720)  评论(0)    收藏  举报

导航