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