wake lock是什么 ?作者: Whyip3000 时间: 2013-3-28 02:26 PM
◆小烏龜◆ 发表于 2013-3-28 02:21 PM
wake lock是什么 ?
What is WakeLock?
In order to prolong battery life, over time Android devices will first dim, then turn off the screen,
before turning off the CPU. WakeLocks are a Power Manager system Service feature, available to your
applications to control the power state of the host device.
Wake Locks can be used to keep the CPU running, prevent the screen from dimming, prevent the screen
from turning off, and prevent the keyboard backlight from turning off.
Creating and holding Wake Locks can have a dramatic influence on the battery
drain associated with your application. It’s good practice to use Wake Locks only
when strictly necessary, for as short a time as needed, and to release them as soon
as possible.