App/shortcut to quickly change screen lock type? Two scenarios:


I'm at a "trusted" place, and don't
want to enter unlock
password/pattern all the time
I'm at an "untrusted" place and want
my phone to be password/pattern
screen locked


is there any way to use some kind of a shortcut/app which would quickly switch the way the screen gets locked? for example (when my screen is unlocked) - I press an icon and the lock type changes from using just a regular unlock method to password/pattern unlock method and vice versa.

using android2.2

edit: added a new answer below on what I now use to accomplish this (using android2.3.7)

thank you
From what I've read, Tasker should be able to do this.  You can turn on or off the screen lock mechanism based upon whatever criteria you want, including the value of a variable.  You can also change the value of a variable via a widget.  Combine the two and it should work.

Caveat Lector: I've researched Tasker, I've read about what it can and can't do, but I've never tried it (yet).  So take this as speculation.