让屏幕保持高亮

PowerManager pm = (PowerManager) mContext
                    .getSystemService(Context.POWER_SERVICE);
            wakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK,
                    mContext.getClass().getCanonicalName());
            wakeLock.acquire();


你可能感兴趣的:(service)