android 获取屏幕是否高亮

  public boolean isScreenOn(Context context) {
    PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
    return pm.isScreenOn();
  }

你可能感兴趣的:(android 获取屏幕是否高亮)