Android examples for Android OS:Power
release Lock from PowerManager
/**//from w w w .j a v a 2 s. c om * Project Name:TongCheng File Name:CommonUtil.java Package Name:com.taobao.tongcheng.util Date:2013-3-21 8:24:30 * Copyright (c) 2013, weiping.yu@alibaba-inc.com All Rights Reserved. */ //package com.java2s; import android.content.Context; import android.os.PowerManager; public class Main { private static PowerManager.WakeLock wakeLock; public static void releaseLock(Context context) { if (wakeLock != null && wakeLock.isHeld()) { wakeLock.release(); } } }