摘要: 相关的变量: PowerManager powerManager = null; WakeLock wakeLock = null;初始化: powerManager = (PowerManager) this .getSystemService(Service.POWER_SERVICE); wakeLock = this.powerManager.newWakeLock( PowerManager.SCREEN_DIM_WAKE_LOCK, "My Lock");开启屏幕常亮: wakeLock.setReferenceCounted(false); wakeLock. 阅读全文
posted @ 2012-03-07 10:37 tgwtt 阅读(7778) 评论(0) 推荐(2) 编辑