Hello I am trying to use a service to control a wakelock so I can permanently leave the screen on when my application is running. I create the wakelock and activate it in onCrea
Aren't you missing the line
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "My Tag");
in onDestroy()? It is a local variable in onCreate(), but it is not declared in onDestroy() at all.
Or, more probable, you may want to make it a field of class WakeLockService instead of a local variable.