Code example for PowerManager.WakeLock

Methods: isHeld, release

0
    	Log.d(TAG, "Wakelock " + WAKELOCK + " aquired");
    } 
     
    public static void releaseWakelock() 
    { 
    	if ((m_saveWakelock != null) && (m_saveWakelock.isHeld()))
    	{ 
    		m_saveWakelock.release();
    		Log.d(TAG, "Wakelock " + WAKELOCK + " released");
    	} 
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE