Android WakeLock
来源:互联网 发布:上虞用友软件 编辑:程序博客网 时间:2024/05/24 05:42
A wake lock is a mechanism to indicate that your application needs to have the device stay on.
唤醒锁是一种能表明你的程序让设备保持唤醒状态的机制
Any application using a WakeLock must request the android.permission.WAKE_LOCK
permission in an <uses-permission>
element of the application's manifest. Obtain a wake lock by calling newWakeLock(int, String)
.
Call acquire()
to acquire the wake lock and force the device to stay on at the level that was requested when the wake lock was created.
Call release()
when you are done and don't need the lock anymore. It is very important to do this as soon as possible to avoid running down the device's battery excessively.
采用单例模式))))
0 0
- Android WakeLock
- Android WakeLock
- Android WakeLock
- Android: wakelock
- Android Wakelock
- Android Wakelock
- Android Wakelock
- Android WakeLock
- Android wakelock
- Android WakeLock
- Android 申请WakeLock
- Android: PowerManager.WakeLock
- android PowerManager wakelock
- Android PowerManager.WakeLock分享
- android PowerManager wakelock
- android WakeLock 机制!
- android wakelock 解析
- android wakelock 实现
- IOCP模型与网络编程
- 面向对象的C语言开发框架:Nesty
- Android ViewPager使用详解
- java 一个简单的线程池
- ThinkPHP3.0 出现“您浏览的页面暂时发生了错误!请稍后再试~”的解决办法
- Android WakeLock
- 聪明的程序员使用50%-70%的时间用来思考
- linux expect自动登录ssh,ftp
- Eclipse运行Android程序报Error generating final archive: Unable to get debug signature key错误解决方法
- DZ论坛常见基本设置问题
- 1、Socket编程(网络协议一)
- Servlet生成验证码
- ajax提交session超时跳转页面使用全局的方法来处理
- spring mvc 拦截器