I know, I know... vijay555 just released a similar application earlier today. It seems we were working on the same thing at the same time. After discussing this with him in his thread: http://forum.xda-developers.com/viewtopic.php?t=45851
I've decided to go ahead and release my own version as an alternative.
The program can (and probably should!) be mapped to a hardware button using the Buttons control panel applet. I run mine on Button 4(hold) because I never use the voice recorder. This also prevents locking the device unintentionally.
I have also added two minor features to the application that some might find useful. You can optionally put the device to sleep after it is locked (same as pressing the power button) and you can configure a program to run just before the device is locked. This is useful if you have an application that you may want to look at frequently without unlocking the device. (Contacts, Calendar, a full-screen clock application, etc).
Both of these options are set in a control panel applet System->Device Lock.
NOTE: I know some people have use memmaid to register the lock application to run on wake up. If you do this, DO NOT select the suspend device option!! This will result in not being able to wake your device up for more than a few seconds (Wake up the device, your notification tells the device to lock, the lock process suspends the device, You wake up the device, rinse, repeat)
If you do this, all is not lost, just soft reset your device and uncheck the option to suspend in the control panel.
Here's a link to the installer (Requires WM5 PocketPC edition):
http://www.mr2-power.com/downloads/DeviceLock.CAB
You will likely need to soft-reset to see the new Control Panel applet.
*NEW* The latest version does NOT require the Lock Device today item to be loaded!
Enjoy!
-Matt Armstrong
Tried it on a BA and it works but change the default from suspend when locked since the applet doesnt show till after soft-reset. Thanks.
so you're saying make the default behavior NOT to suspend. Someone in another forum also requested the ability to blank the screen rather than suspend. I'll likely add this option in the next couple of days. I can change the default registry entry now though. A new installer should be up in a couple of minutes.
-Matt
Ok, yet another new CAB file has been uploaded. This new version has the option to suspend the device OR just blank the screen. If you blank the screen your programs will continue to run (and consume more power!). To restore the screen just press the power button. I also changed the default behavior after install to JUST lock the phone (not susped or blank). Everything else is the same.
-Matt
P.S. I appreciate all of the feedback very much. Keep it coming!
Thanks for the changes armstrom, ill download and test again. Thanks
Just installed and it works ok.
I have updated the software one final time for the night.
I have eliminated the requirement that the Lock Device today item be loaded. Now you can go unload that item and free up 20 pixels of screen real-estate For some reason this was a biggie to many people :? So it's finally done.
Keep the bug reports coming as you find them.
-Matt
great version. Without the plugin makes it invaluable. Maybe you can make as an option to hook it to the power button to get it to run when you power off? Or we can use vjkey for that
Well, I can add that option. In fact an early revision of the software did have it. I was just having inconsistent results with it on my MDA. For some reason the MDA wasn't firing the wakeup event if I suspend and then resume with just the power button. (press the power to suspend, then press again to resume). If I programmatically suspend the device, then I get the event every time. I can add it back in though if you want to try it on your device. Maybe you'll have better luck?
Edit: I just installed the new version vj's software and it has the same problem as mine. For some reason my phone does fire the wake-up event properly! I'll add the option back in to my software since it seems to work on other people's hardware just fine.
-Matt
Awesome!!
Man this place is great!
Armstrom, both you and VJ are awesome. This was the biggest single thing I've missed since buying my 8125. Since I use Xpress mail and the device wakes up when a message comes in, and if it's in my holster, and a button is gettind pushed, all sorts of weird things would happen.
So I had to always remember to go to Today, scroll down, hit the lock function...grrr.
But no more. I can't believe the terrific amount of support, hard work and resources you guys all contribute to these cool little gadgets.
Thanks again to both of you.
-JMS
If this can be made wot work reliably with power on events it would be awesome.
Thank you for putting these together.
One quick question...
I would love to have the Today screen as my default app to load on a lock action, however I can't find a way to do it. There is no .lnk file to point your Device Lock to.
I tried installing PHM Keys (as there's a Today .lnk in there) but it won't install in WM5.
Any programatic way to invoke/call the Today screen from a shortcut/lnk file so I can point the Device Lock to that file so Today is always showing when I lock my phone.
Thanks again, you guys are great.
-JMS
(Apologies for multiple entries - posting problems)
(Apologies for multiple entries - posting problems)
(Apologies for multiple entries - posting problems)
Great job Matt.
One quick question for ya - I would like to keep Egress running on the today screen when the device is locked. When I choose NOT to suspend the device or blank the screen, the today screen shows but the egress app is not cycling thru the latest news (it sticks on the last before the lock).
Is there any way to keep Egress at least cycling thru the news it d/l before the lock (if not allowing it to continue to update at egress specified times)?
Thanks again!
Thank you
A very useful app!
jkimrey said:
Great job Matt.
One quick question for ya - I would like to keep Egress running on the today screen when the device is locked. When I choose NOT to suspend the device or blank the screen, the today screen shows but the egress app is not cycling thru the latest news (it sticks on the last before the lock).
Is there any way to keep Egress at least cycling thru the news it d/l before the lock (if not allowing it to continue to update at egress specified times)?
Thanks again!
Click to expand...
Click to collapse
I'm really not sure how to solve that issue. I've never use the application you're talking about. Perhaps it is detecting the device being locked and not updating itself? I'm really not sure.
-Matt
Matt,
I think it must have something to do with the phone being in locked mode. I've found that when the phone is locked, the screen will go black after a couple seconds for both the lock on the today screen as well as when using a hardware button thru your application.
When I use the today screen app, after tapping the screen when black, it will display the today screen with the cycling headlines.
When I use your lock app, however, and tap to get the screen back, it doesn't cycle. If I hold down the power button and then turn it back on after being locked by your app, however, it does cycle.
Not a huge deal, just found it interesting...Wonder what would be different between the included today screen lock and your lock app that would cause this?
Thanks again!
armstrom said:
jkimrey said:
Great job Matt.
One quick question for ya - I would like to keep Egress running on the today screen when the device is locked. When I choose NOT to suspend the device or blank the screen, the today screen shows but the egress app is not cycling thru the latest news (it sticks on the last before the lock).
Is there any way to keep Egress at least cycling thru the news it d/l before the lock (if not allowing it to continue to update at egress specified times)?
Thanks again!
Click to expand...
Click to collapse
I'm really not sure how to solve that issue. I've never use the application you're talking about. Perhaps it is detecting the device being locked and not updating itself? I'm really not sure.
-Matt
Click to expand...
Click to collapse
Ok, I have added the option to lock the device on wake-up. Note: I have not been able to test this because my device does not properly send wake-up notifications. If someone could give this a try and let me know if it works I would appreciate it.
I have also added command line options to override the configuration specified in the control panel applet. The options are as follows:
-o:* Overrides the lock options and takes a number 0-2.
0 = Lock Only
1 = Lock then Suspend
2 = Lock then Blank Screen
-r:* Overrides the application to run after locking. This must have Quotes around it. Specifying -r:"" will prevent the default application from running.
Here are some examples:
Blank the screen and run the calculator.
DeviceLock.exe -o:2 -r:"\Windows\calc.exe"
Just lock and don't run anything
DeviceLock.exe -o:0 -r:""
You do not need these command line options if you just want the device lock to always follow what you have specified in the applet. These are only to optionally override the specified behavior. Some people on another board expressed the desire to have the device lock in two different ways depending on what they were doing. This is the way
Again, please let me know if the lock on wake functionality works or not
The cab is in the usual place.
-Matt
Here are some examples:
DeviceLock.exe -o:2
Source Code Finally Posted...
Sorry it took so long to post the source. I haven't been monitoring this thread for some time due to other time demands. A recent email reminded me that I promised to release the source, so here ya go...
Release 6 Notes Below...
About a week ago, I was looking for an app that would lock my wizard when it came out of suspend. I use a bluetooth headset for all my calls, so I rarely remove my phone from its carrier. However, while talking, I tend to move around and frequently the hang-up button would be pressed resulting in a disconnect.
Frustrated, I looked at a few apps. I really like the "Slide to Unlock" feature in the iPhone-like app S2U. It more or less suited my needs. However, my bluetooth headset wouldn't work with S2U installed.
Thus I set about writing an app that would "lock" the phone whenever it came out of suspend mode. The result is the app, LockDown, attached to this post. Once run, LockDown sits in the background waiting for "resume" event. At this time, it locks all keys and prevents any stylus events save one - a "Slide right to unlock" slider control. As with S2U, once the thumb tab is slid all the way to the right, the keys are unlocked and the unit once again responds to the stylus. Also note that LockDown only takes up 5k of memory.
LockDown has been tested on TNT.1933 (WM6) for the Wizard. It's compiled as a PPC 2003 app, so in theory it should also work on WM5 and any PPC 2003 devices. I've tested it with my Visual Studio WM5 and PPC emulators, and it worked fine. However, it couldn't test it on the real deals.
It's a new app. While I'm not experiencing any problems, please consider it beta for now. As such, don't wire it up as an auto-start link until you've run with it awhile and are certain it works as advertised. For now, I suggest just copying it to your \windows folder and linking to it there. If you have any problems, please report them, and I'll address them ASAP.
Release 6 Notes
The slider bug was fixed.
The Message option was fixed.
Application Invocation
Lockdown [-lock] [-close]
With the -lock parameter, the application starts in lock mode.
With the -close parameter, the application is removed from memory (if running).
Registry Options in Folder \HKEY_LOCAL_MACHINE\Software\Lockdown\Slider
Position (DWORD, 0):
If set to 0, the slider is centered.
If > 0, the slider is positioned X pixels below the "Top Taskbar".
If < 0, the slider is positioned X pixels above the "Bottom Taskbar".
Padding (DWORD, 2):
Pixel offsets for slider arrow from the left and right edges of the slider window.
Message (String, "Slide right to unlock.")
The text message displayed in the slider window.
TextColor (DWORD, 00FFFFFF hex):
Color of slider message. Note that the HEX color format is 00BBGGRR where BB is blue, GG is green, and RR is red.
FontPoint (DWORD, 16):
The font size of the slider message.
PenColor (DWORD, 00F04050 hex):
Color of the slider arrow.
BackgroundColor (DWORD, 00CCCCCC hex):
Color of the slider background.
WidthMultiplier (String, .92):
Must be a floating point value. Multiply this value with the lesser value of the desktop height or width (in pixels) to determine the slider width.
For example: If the desktop display is 240 by 320 and the WidthMultiplier is 0.9, the slider width is 216 (240 X .9) pixels.
HeightMultiplier (String, .22):
Must be a floating point value. Multiply this value with the lesser value of the desktop height or width (in pixels) to determine the slider height.
TabWidthMultiplier (String, 1.5):
Must be a floating point value. Multiply this value with the calculated slider height to determine the width of the slider arrow.
Note that the height of the arrow is always equal to the height of the slider.
EnableAnswer (DWORD, 1):
If set to 1, the answer button is enabled during an incoming call period (while the phone is ringing).
If set to 0, the answer button is always disabled.
EnableIgnore (DWORD, 1):
If set to 1, the ignore button is enabled during an incoming call period (while the phone is ringing).
If set to 0, the ignore button is always disabled.
After the installation, only the Position key will be present in the registry. I figure that most users will only tweak this value.
To modify the other parameters, add the appropriate keys with the defined types as shown in parenthesis. The default values are also listed in the parenthesis.
If you decide to tweak these parameters, please remove any shortcut to Lockdown from the StartUp folder. While I've taken steps to prevent "bad" values in these parameters, I still suggest this precaution.
Please note that Lockdown must be terminated and restarted before any changes to registry settings take effect.
As always, if you have any issues, please let me know.
W James
Very Great app...im sure many will find it useful
Does not work on my CDMA Touch
Tried it out but does not run on my CDMA touch.
It work for me on Hermes With schaps wm6 Ver 4.30
thanks.
WJames said:
Greets.
About a week ago, I was looking for an app that would lock my wizard when it came out of suspend. I use a bluetooth headset for all my calls, so I rarely remove my phone from its carrier. However, while talking, I tend to move around and frequently the hang-up button would be pressed resulting in a disconnect.
Frustrated, I looked at a few apps. I really like the "Slide to Unlock" feature in the iPhone-like app S2U. It more or less suited my needs. However, my bluetooth headset wouldn't work with S2U installed.
Thus I set about writing an app that would "lock" the phone whenever it came out of suspend mode. The result is the app, LockDown, attached to this post. Once run, LockDown sits in the background waiting for "resume" event. At this time, it locks all keys and prevents any stylus events save one - a "Slide right to unlock" slider control. As with S2U, once the thumb tab is slid all the way to the right, the keys are unlocked and the unit once again responds to the stylus. Also note that LockDown only takes up 5k of memory.
LockDown has been tested on TNT.1933 (WM6) for the Wizard. It's compiled as a PPC 2003 app, so in theory it should also work on WM5 and any PPC 2003 devices. I've tested it with my Visual Studio WM5 and PPC emulators, and it worked fine. However, it couldn't test it on the real deals.
It's a new app. While I'm not experiencing any problems, please consider it beta for now. As such, don't wire it up as an auto-start link until you've run with it awhile and are certain it works as advertised. For now, I suggest just copying it to your \windows folder and linking to it there. If you have any problems, please report them, and I'll address them ASAP.
W James
Click to expand...
Click to collapse
hi WJames,
any screenshots of your app? it sounds very usefull, but how does it look
like?
today plugin s2u
it was a dream cam true if was a today plugin, to the left...lock, to the right ...unlock, but in the today,
I use my standard windows lock today plugin, without the lock buttons, so when i touch any buttom , the backlight goes on (to see the clock and appointments in one clic).
today plugin s2u is the rigth way.
great work
red.schumi said:
hi WJames,
any screenshots of your app? it sounds very usefull, but how does it look
like?
Click to expand...
Click to collapse
as he said...it sits behind the screen..and waits for the resume event
Here's a screen shot as per request. It's very plain jane. I wasn't looking for the beauty of something like S2U. I merely wanted a functional app that didn't take up much real estate (5kb).
Once it's gone through the paces and looks to be bug-free, I'll release the code and you can tweak to meet your needs.
It gives a black screen with white text in the center of screen saying "Slide right to unlock." There is a box with a plain white slider. You cannot see your today screen.
edit: Sorry, had the page open while I tested it and did not notice your reply before posting.
is it me or do we really need another "slide to unlock" app to mimic the iphone. There's already S2U Pro & S2U2.
What's funny, is that yeah these are cool but are they really needed? If you setup the device button lock correctly, then what's the point of a S2U app? All it does is add one more step to getting to your today page....
smittyofdhs said:
is it me or do we really need another "slide to unlock" app to mimic the iphone. There's already S2U Pro & S2U2.
What's funny, is that yeah these are cool but are they really needed? If you setup the device button lock correctly, then what's the point of a S2U app? All it does is add one more step to getting to your today page....
Click to expand...
Click to collapse
To each his own, but i run S2U2 because it allows me to operate my phone via bluetooth while the buttons are locked. The builtin lock doesn't let me do that.
perasite said:
To each his own, but i run S2U2 because it allows me to operate my phone via bluetooth while the buttons are locked. The builtin lock doesn't let me do that.
Click to expand...
Click to collapse
Hmm, never had that problem with bulit-in lock. Yes, to each their own. I've installed/uninstalled S2U2 soooo many times. I love the app but end up finding that it serves me no real purpose (other then eye candy) and it gets uninstalled. New version comes out, installed for a about 3-4 hours, then uninstalled again.
Very Nice...can i Request something?
Hi
Thanks for the nice application
very small, problem free so far (on Eten M700 with WM6) & useful
Can i have 3 requests please:
1- can you make the slider spring back to the left if it was accidentaly moved to the right, right now it stays half way & i think if you make it spring back it will be more safe as a lock & it will look better too
2- can you make the slider button wider (double) so i can catch it with my fat fingers
3- can you add an icon, so i may put it in my today launcher list & it would look better than the plain white square, something like a lock or key or a hand can do.
I also noticed that sometimes as i come out of the suspend mode, the slider is either late to appear (1-2 sec) & may remain unresponsive for two or three trys to slide it to right (stays in place)
Once started i couldn't figure how to get rid of it & seems that only way is to soft reset to go back to normal wake up without locking
Hope these comments help..thanks again for nice work
smittyofdhs said:
is it me or do we really need another "slide to unlock" app to mimic the iphone. There's already S2U Pro & S2U2.
What's funny, is that yeah these are cool but are they really needed? If you setup the device button lock correctly, then what's the point of a S2U app? All it does is add one more step to getting to your today page....
Click to expand...
Click to collapse
Those apps you mentioned take a ****load of memory and add to battery drain because of all the animations and graphics. His is a simple slide function that sips memory and battery life. Very useful IMO. Sliding is good cuz I find unlocking the WM way to be annoying. I have to touch an icon to lock. Then to unlock, I have to press two buttons. With sliding, it locks automatically and unlocking is accompished in one simple motion.
You're right that there's already enough S2U programs.
I also think S2U2 is an awesome balance between beauty and speed/mem cost. For people who have only tried S2U, you really need to change to S2U2... WAY faster and stable!
In most cases, yes S2U isn't that necessary, as it's similar an extra step to get to your today page, but I need it because:
1) My alarms don't wake if the phone is on standby, so I put it onto S2U2 mode when I sleep
2) My audio manager doesn't go to the next song if the phone is on standby, so I have to lock my phone while listening using S2U2
I question how good it'll be to have Slide 2 Lock as a today plugin, since I don't need some extra waste of space. What I do is set the gesture right-to-left (using FTouchFlo) to execute S2U2 so when I slide right to left, it opens S2U2, then sliding left to right, unlocks it. Love it!
smittyofdhs said:
is it me or do we really need another "slide to unlock" app to mimic the iphone. There's already S2U Pro & S2U2.
What's funny, is that yeah these are cool but are they really needed? If you setup the device button lock correctly, then what's the point of a S2U app? All it does is add one more step to getting to your today page....
Click to expand...
Click to collapse
I hate to say it, but that's not quite true. If you setup the lock all buttons, sure you won't accidentally turn it on, but if you get a phone call, it doesn't just power right off (at least my 6700 doesn't) - it can and has made phone calls like that...
And as for the S2U/2 - they use quite a bit more memory than this. A 5k program use is great, although I won't use it because I like the clock on s2u2.
Great App
This is all I ever really wanted. Just a very simple slide unlock. simple.
Excellent.
thanks.
This simple slide to unlock app is perfect for my needs...Thanks!
The point here is WJames created an application for his own use and shared it with everybody. If someone think that it is not req. they might not use it. Anyway thanks for the nice little app.
Thanks! Great small app. Would be fantastic with a simple white clock above the lock bar though, so we could check the time on the phone without unlocking it. Thanks a bunch!
As known with Xperia, the Landscape mode is oriented the way the hardware keyboard may be used.
But it would be pretty sometimes (in my car, actually) to have an opportunity to switch to a "flipped landscape", with the USB port looking down, not up. I understand the HW keyboard is useless now, but it's OK with me.
Can I somehow switch X1 to opposite Landscape mode?
Registry hack, software controlled application or so? Hardware hacks aren't welcomed.
The SPB Pocket Plus 4 today plug-in has a one click option to rotate the screen to the right. Seems to work ok.
I believe you can change this in advanced config, however it might be a pain to keep going in and out of the application everytime you use it.
My thoughts were that if advanced config does it - someone might be able to find the corrisponding reg key to make a shortcut/app/cab
Not sure if that setting requires a soft reset to take effect?
Some guys recommended me AE Button.
http://handheld.softpedia.com/get/System-Utilities/Enhancements/AE-Button-Plus-21781.shtml
This applet can set any task to any button, including 90, 180 and 270 degrees rotations (some may be disabled). $8 is OK with me and I'm going to test shareware till the end of the week.
Report following.
I have only good things to say about AE Button plus. Really useful app.
The USB port is on the bottom, unless your phone is upside down haha
especially when connected to Power cable i would prefer when screen would be rotated by 180°.
Yes i know there is auto rotation but this does not concern the lock screen an also some apps are ignoring this feature. Also the home screen is set to 0° after unlocking.
I'seen in different threads, that it is possible in CM7 to flip the screen my default but it is allways mentioned to consult the rom developer and never sayed ho to do this.
can anyone help ?
are you talking about cm7 or stock rom ?
in stock you can lock the screen by tapping the status bar and select unlocked
this will not affect the lock screen but my launcher (go launcher)
i'm about cm7.
maybe ther might be settings for one or the other launcher but i want to flip the screen globally so that it affects every app including the lock screen.
edit: i assume this must be done by configuring the graphics driver
I agree. It would be nice to keep power button on top.
Sent from my Kindle Fire using Tapatalk
i think to remember that there is a setting for this in /system/build.prop
found:
ro.sf.hwrotation=270
where you change the 270 into either 180, 90, or 0....
!!! but use at your own risk !!!
yes thats it man.
but now i habe to find a way to rotate the touchscreen as well
you will have to rotate the touchscreen and the accelerometer as well
i think that will not be so easy because it's compiled or linked in the souce code
sorry ...
yes this seems to be hard coded and needs a patch. I've never built android from source so i will no gonna put my hands on.
could anybody please place this as a feature request to the developpers. I've no permission to post in the devs forum.
well, i've 9 posts. including this one it will be 10