A wake lock is one of the simplest APIs in Android and one of the easiest to misuse. Acquiring one takes a single line of code.