How do i prevent (in code) the screen lock ? - Windows Mobile Software Development

Hello,
I made an application that keeps the screen on and keeps the backlight from dimming.
However after a few seconds of inactivity, the windows mobile 6.5 lock screen (the one you have to slide the finger) appears.
I want to prevent that but i can't find any info.
I can code in any language so this is no problem.
Any help is apreciated, thanks!

Related

Orbit turns on in pocket when alarm goes off or text arrives

Hi,
I am new to my XDA Orbit and am liking it very much. One annoyance (which is probably due to my ignorance) is that when I receive a text or an alarm goes off, my Orbit the device turns on / comes out of powersave mode and hence the screen is active whilst it is in my pocket (could be dangerous).
Is this the correct behaviour? Surely not, as input can be made from contact with your pocket? Is there a setting to change this behaviour? What does everyone else do?
Thanks in advance for any advice
Gary
Dosn't the XDA version have the screen lock like the mda?
It's a little padlock icon at the bottom of the today screen which says device unlocked, you tap it and the screen is locked from in pocket pressing, all buttons are locked too except the power button. when the device is switched on manually or by an event the screen is only active after using a 2 tap pattern, unlikely to happen by accident.
I must admit, I thought this was part of WM5 and not T-Mobile specific, strange it's not there on the xda.
It is possible to lock the screen before you turn the orbit off but it is a bit of a pain in the arse to have to remember to do that every time you turn off the device.
I was hoping for a program that would allow alarms and text message notifications without the screen becoming active.....
True, or you could re-train yourself to only do the screen lock and have the device auto-off in 3 mins or so, and it would be exactly the same.
Personally I find the screen wake up useful.
I can't say I've tried, but what happens if you go to Start - settings- Sounds & Notifications - Notifications
and go through all the text message received etc and untick "Display message on screen"??
http://www.chi-tai.info/cs_BatteryStatus_XDA_Neo_WM5_iM_cs.htm
this battery status plug-in works on mda compact iii and it has a setting to lock the device on wake up so all you need to do is switch it off to lock it.
macguffin said:
http://www.chi-tai.info/cs_BatteryStatus_XDA_Neo_WM5_iM_cs.htm
this battery status plug-in works on mda compact iii and it has a setting to lock the device on wake up so all you need to do is switch it off to lock it.
Click to expand...
Click to collapse
So it does!! I didn't notice. This is an excelent piece of software to have anyway, so this is just a double bonus, unless you are unhappy with the 2 screen taps required to de-activate the lock.
Hitting the lock icon requires the stylus whereas the power button does not - much easier and intuitive.
Will have a look into the alerts settings
Thanks for your help
Can't say I've had any difficulty hitting the lock (and definately not the unlock buttons) with my thumb, one handed, but see above for auto locking option, you 100% don't need to get the stylus to unlock.
i auto lock when the screen goes off and unlock with my thumb one handed, easy and intuitive

avoid rhodium phone screen always blanks

my rhodium phone screen always blanks.
This happens under WM 6.1 (original version) or WM 6.5 new cooked versions
I have tried 4 different ROMs.
I have tried to tweak using HD TWeak utilitites. I have tried to disable any power savings settings. I have disable the settings which allowed the phone to blank the screen, during a phone conversation: no help!
The blanking happens when the phone is close to my ear: when I detach from my ear sometimes the screen comes back to alive, but sometimes (50% of times) it remains blank.
To regain control I either have to open the keyboard and close or, when this is not enough, to soft reset
What can i do?
Thanks
Saulo866
I have experienced this problem under WWE Roms and under NON-WWE roms (for example 6.5 chinese ROM)
My device is now running this ROM:
EnergyROM "Genesis" (23016) ★ |Sep 17th| Manila 2.5 & 2.1
Thanks and waiting for suggestions
Saulo
I have even disabled Manila and unchecked all power saving features which I found under settings...I really start to believe that it is a hardware issue. Any opinion?
Thanks
I have this running the Sprint stock ROM. The TP2 has a proximity sensor near the HTC symbol on the upper left side of the screen. When I move the phone from my ear or while in call I sometimes lose my phone screen all together and it goes back to the TF3D home screen so I have to hit the send key to bring the phone app back up.
in registry HKEY_CURRENT_USER\ControlPanel\Keybd
set:
DeviceLockWhenSuspend
from 1 to 0
http://forum.ppcgeeks.com/showthread.php?t=82944&highlight=sensor
I noticed this only after I started using the device lock since I added push email which requires me to. Some have stated that changing the timeout to 0 will correct this problem as well. My guess is that somewhere the device lock and proximity sensor are not playing well together and its a design flaw.

Slide to unlock without pin

is it possible to enable the unlock slider without having the pin entry screen pop up afterwards?
to embelish on my issue I am using the latest offical HTC wm 6.5 rom and have tried to edith the registry but changing the reg key for autolock dosen't seem to have any effect. I also tried Advanced Config 3.3 but it's not showing the autolock preferance as an option under the screen heading. I am currently using a pin to keep the screen locked but i'd like a more snappy alternative
try going to settings\lock and uncheck the prompt if phone unused for...should take car of it!!
unfortunatley that setting simply takes away the slide to unlock screen completely. It seems to only appear when I have the pin code enabled :s
I tried to call the lock function when the power button's pressed but the button assignment section on my phone only shows one button for some reason..
Have found my solution for anyone else who had difficulty finding this on the forum heres the link http://forum.xda-developers.com/showthread.php?t=386451 works like a charm on 6.5

Screen lock sought

I'm going mad here trying to find a screen Lock suitable to my needs. Can anyone please help? I want a simple screen lock, nothing fancy, no bells'n'whistles, but with the following two essential features.
1) Screen Lock is quickly unlocked with a simple screen swipe as soon as I either power on or slide open the device (ideally slide-opening would automatically unlock without requiring a swipe).
2) When running on external power the screen should unlock automatically and remain unlocked.
I've now auditioned PocketShield, Sunscape, TouchLockPro and S2U2 all of which may have one or other of those features, but none have both.
Can anyone please recommend anything else? Thank you.
1) In Pocketshield you can auto unlock by sliding QWERTY out if you create the following reg key: HKEY_LOCAL_MACHINE\Software\Pocketshield\ROTATE=1 (DWORD)
2) There is an option for it in settings.
Thanks for that. I've decided to give PocketShield another go and am auditioning it at the moment. Also I've changed my UI from Winterface to Spb Mobile Shell 3.5 because I wondered whether Winterface wasn't working well with PocketShield.
But here's my issue with PocketShield, perhaps somebody can please help?
If I open the slide keyboard I am able for a second or two to use the device as if it were not locked, before PocketShield "remembers" that is supposed to be on and then suddenly the device gets upset, slow, stuck, until I can find and unlock pocketShield. If I first power on and then slide open the keyboard, everything is fine, but everything stays in portrait, even though the keyboard is open. I can unlock PocketShield properly (though sideways) but then everything else is displayed in portrait, even though the keyboard is open.
I tried the reg tweak suggested, but found that that just caused even more confusion; portrait trying to change the landscape at the same time as the UI was trying to appear, at the same time as PocketShield was trying to put up its lock screen, basically chaos!
Any thoughts anyone, please?
My S2U2 v 2.42, has both of those options. Just go to Settings>Others
1. Action when connect to power>Unlock
2. Unlock when Keyboard is opened>On
Thanks. I've been trying out PocketShield all day and it seems that in its simplest terms there is a delay between switching on the unit and PocketShield realising it should be locking the screen, during which time it is possible to start an action which is then instantly stopped when PocketShield kicks in. Ridiculous.
I'll give S2U2 another shot now, cheers.
Smart unlock, its in the software worth installing section, does exactly what you want
I'm getting very frustrated here and beginning to think that my problem is nothing to do with one screen lock program or another, but with my unit.
Whichever screen lock I install, roughly 60% of the time the lock works as it should, but about 40% of the time there is a short period between powering on and the screen lock preventing me from doing anything. During this time it's possible to use the unit normally for a second or two until the screen lock kicks in, at which point often the unit gets confused, actions jam, and I often end up having to soft reset.
With all of the locks I've tried, if I open the keyboard and THEN power on, this also causes confusion.
Can anybody possibly shed any light on all this, please?
Could be that one of your installed applications is subscribed to the power on event and performs a very intensive processing each time device is turned on, delaying other subscriber apps such as lock screens. You might want to try uninstalling one by one to see if any culprit. Last resource is hard reset.
Thanks Pckshd. To be honest I've just had a rough day with the phone: it froze last night and on soft reset wouldn't boot up. This morning was the same story so eventually I was forced to do a hard reset. Then my most recent backup wouldn't restore, claiming there wasn't enough memory in the phone (how can that be? It was backed up from the phone!). Eventually I had to rebuild everything and right now haven't dared install any of the screen lock programs!
Is there not a registry entry anywhere that would show me which programs are taking priority over power on? My UI of choice, Winterface, as its own screen Lock, which is almost 100% reliable but regrettably continues to run went on mains power (I want one that unlocks on mains power, the desired feature that started all this off in the first place).

Stop Lock screen

Hi all,
Is there a way to stop the lock screen from turning ON after a missed call. I'm not talking about the message on the lock screen but the lock screen itself. I just want the missed call to end and the lock screen not to come on at all. Is this possible?
I do want the lock screen to behave normally otherwise.
BTW - S4 Mini is rooted.
TIA
Greg
ghines said:
Hi all,
Is there a way to stop the lock screen from turning ON after a missed call. I'm not talking about the message on the lock screen but the lock screen itself. I just want the missed call to end and the lock screen not to come on at all. Is this possible?
I do want the lock screen to behave normally otherwise.
BTW - S4 Mini is rooted.
TIA
Greg
Click to expand...
Click to collapse
I never use a lock screen but if I did I would probably use Tasker to get rid of the lock screen when the 'phone' becomes idle. You would probably need the Secure Settings plugin to do it. Probably

Categories

Resources