Quickly turn on / off lock screen? Is there someway to quickly turn on / off the lock screen without delving into the settings?

Most of the time I want the lock screen, but when using the device to play music / the radio I'd like quick access to the full app without needing to unlock my screen each time.

Ideally when something is detected in the headphone jack I'd like the ability for the lock screen to be disabled first time the screen is unlocked, or if already unlocked when headphone jack is used simply disable the lock screen.

Or perhaps there's a widget I can add to my home screen to quickly turn on / off the lock screen manually?

Any ideas?
Turning OFF your screen via widget is possible (and several widgets are available for that). But turning ON the screen cannot work that way, as to access the widget, it must already be turned on. Of course you could use a lockscreen permitting widgets (like C Locker Pro).

An alternative is using tasker, and defining a corresponding profile:


Condition: Headphone plugged
Task: Disable keyguard


This is the most convenient way, as you only had to turn on/off the screen via the power button. And apart from that, you get yourself a powerful companion for your device – just check the tasker tag-wiki and other questions using the tasker tag :)