背景灯常量

来源:互联网 发布:linux如何切换盘符 编辑:程序博客网 时间:2024/04/27 14:35
打开mWakeLock = ((PowerManager)mContext.getSystemService(Context.POWER_SERVICE)).newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, "SystemSet");mWakeLock.acquire();

关闭

if (null != mWakeLock && mWakeLock.isHeld()) {mWakeLock.release();mWakeLock = null;}


原创粉丝点击