前言
         欢迎大家我分享和推荐好用的代码段~~
声明
         欢迎转载,但请保留文章原始出处:
         CSDN:
http://www.csdn.net
         雨季o莫忧离:http://blog.csdn.net/luckkof

正文

	private void AcquireWakeLock() {
PowerManager pm = (PowerManager)mApplicationContext.getSystemService(Context.POWER_SERVICE); WakeLock m_wakeObj = (WakeLock)pm.newWakeLock(PowerManager.FULL_WAKE_LOCK
| PowerManager.ACQUIRE_CAUSES_WAKEUP
| PowerManager.ON_AFTER_RELEASE, ""); // m_wakeObj.acquire(); //点亮屏幕15秒钟
m_wakeObj.acquire(1000 * 5);
m_wakeObj.release();//释放资源 }
04-16 19:11