Powermanager

Android保持屏幕常亮的方法

以前一直使用newWakeLock方法: this.powerManager = (PowerManager) this.getSystemService(Context.POWER_SERVICE); this.wakeLock = this.powerManager.newWakeLock(...