[APP] InCall Lock - Lock Send/End buttons on incoming call - Windows Mobile Apps and Games

InCall Lock will temporarily disable Send (aka Talk, Green) and End (aka Red) hardware buttons when you receive an incoming call in order to prevent accidental call pickups/rejects while you are pulling your device out of your pocket. All other hardware buttons are untouched.
After you answer/reject your call the application will release the buttons, so you will be able to hang up, put calls on hold etc. using hardware buttons normally.
The application, after being launched, will remain resident in memory but will not use any CPU cycles at all as it relies on WM Notification system and doesn't do any polling. As it is using WM internal event system, it should work regardless of OS language, installed dialer etc.
This is a zero config application and has no options (yes, this is a feature). I personally needed an application that would do just this - temporarily block these buttons. If you need a device locker, try PocketShield or other available solutions.
How to use:
Install attached cab
Soft reset or launch "InCall Lock Toggle"
To enable/disable InCall Lock temporarily, use InCall Lock Toggle in your Programs menu.
To disable it permanently, just uninstall via Settings - Remove Programs
Requires .Net CF 3.5
Important note for HD2 users: the application won't lock the Send button on this device for some strange reason. If you want to lock it, you'll need to copy phone.lnk from \Windows\Start Menu\Programs to \Windows and rename it to long_send.lnk.
Known issues: the application will also lock the wired headset's answer button. There's no solution for this problem as of yet.
Important note: Unfortunately I cannot support this project anymore because of time constraints and the fact that I don't use a WM device anymore. I'm uploading the source (see attached zip file) so that somebody can develop the thing further. Thanks for understanding and all the positive feedback I've received!

vangrieg said:
InCall Lock will temporarily disable Send (aka Talk, Green) and End (aka Red) hardware buttons when you receive an incoming call in order to prevent accidental call pickups/rejects while you are pulling your device out of your pocket. All other hardware buttons are untouched.
Click to expand...
Click to collapse
Thanks. I installed this earlier and just had my first call with it. Seemed to work perfectly.

Hmm... It doesn't seem to work on Topix 2.9.3. It has the Rhodium dialer. Can this be the culprit?
PS: I've only tested it on outgoing calls so far.

Dmitry N said:
Hmm... It doesn't seem to work on Topix 2.9.3. It has the Rhodium dialer. Can this be the culprit?
Click to expand...
Click to collapse
No, it works with low-level keyboard hooks and WM Notifications so it should work on any device with WM5.0 and later.
Dmitry N said:
PS: I've only tested it on outgoing calls so far.
Click to expand...
Click to collapse
It only locks keys only when your phone is ringing, so it shouldn't even do anything on outgoing calls. It releases keys immediately when you answer or reject a call.

vangrieg said:
It only locks keys only when your phone is ringing, so it shouldn't even do anything on outgoing calls. It releases keys immediately when you answer or reject a call.
Click to expand...
Click to collapse
Ha, my bad! OK, thanks for the app. It DOES work!

confirm: work great with touch HD, must have!

Congratulations. It works niceĀ”

Several apps lock the keys during the incomming call. The touch HD needs to lock the virtuial HW keys during an incomming call AND during a call.You can use the power butten to unblank the screen then use the screen controls to end a call.
This will prevent hangups when using a bt head set and the phone is in your pocket.

apeko said:
Several apps lock the keys during the incomming call.
Click to expand...
Click to collapse
Well, maybe, but they usually come with something else I don't need (i.e. Pocket Shield or LML) or have bugs I can't live with (i.e. Pocket Shield continues to vibrate on incoming calls after I pick up the phone).
apeko said:
The touch HD needs to lock the virtuial HW keys during an incomming call AND during a call.You can use the power butten to unblank the screen then use the screen controls to end a call.
This will prevent hangups when using a bt head set and the phone is in your pocket.
Click to expand...
Click to collapse
This has never happened to me, and I don't like the idea of locking buttons permanently (I use Green button to put calls on hold, for example, and using touchscreen for this purpose is much more complicated).
If you want a more complete locking solution, why not use a locker like LockDevice, for example? Or even standard lock? It can go hand in hand with InCall Lock. This way you will have buttons locked during the conversation AND prevent accidental presses when pulling your device out of your pocket.
I really don't want to make this program complicated and add options; when people start following this route neat little programs quickly turn into S2U2s. If there is a strong usecase I could theoretically add this functionality, it's not that difficult. I would advise to look at other solutions first though.

vangrieg said:
I really don't want to make this program complicated and add options; when people start following this route neat little programs quickly turn into S2U2s. If there is a strong usecase I could theoretically add this functionality, it's not that difficult. I would advise to look at other solutions first though.
Click to expand...
Click to collapse
Hi, I second that! Please keep this as small and simple as possible. As you say, there are always other solutions that can be used with or without InCall Lock to achieve more complicated behavior.
Thanks for a great little app!
Regards,
PK

I am sure many will find this useful

vangrieg said:
Well, maybe, but they usually come with something else I don't need (i.e. Pocket Shield or LML) or have bugs I can't live with (i.e. Pocket Shield continues to vibrate on incoming calls after I pick up the phone).
This has never happened to me, and I don't like the idea of locking buttons permanently (I use Green button to put calls on hold, for example, and using touchscreen for this purpose is much more complicated).
If you want a more complete locking solution, why not use a locker like LockDevice, for example? Or even standard lock? It can go hand in hand with InCall Lock. This way you will have buttons locked during the conversation AND prevent accidental presses when pulling your device out of your pocket.
I really don't want to make this program complicated and add options; when people start following this route neat little programs quickly turn into S2U2s. If there is a strong usecase I could theoretically add this functionality, it's not that difficult. I would advise to look at other solutions first though.
Click to expand...
Click to collapse
The problem is on the touch HD phone the vertuial keys are allways active even with theas other programs.
No other program has an option to lock the virtuial HW keys on a touch HD during a call. Yours could be the first! If you are making a program to lock the keys why not make it complete? Then with a touch of the power button everything unlocks.

apeko said:
The problem is on the touch HD phone the vertuial keys are allways active even with theas other programs.
No other program has an option to lock the virtuial HW keys on a touch HD during a call.
Click to expand...
Click to collapse
I have a Touch HD myself, and I still don't understand your problem. Keys on HD may be "virtual" in that they are part of the touchscreen, but they are "hardware" in that they are managed by the system (or programs, for that matter) in the same way as true hardware keys are.
apeko said:
If you are making a program to lock the keys why not make it complete? Then with a touch of the power button everything unlocks.
Click to expand...
Click to collapse
Because it locks keys in situations where they can be pressed accidentally and which aren't handled well by other programs, that's the point. Like I said, I don't understand why you can't use standard locking programs to lock keys in standard situations. Maybe I'm missing something?

When i am on a call i do not want the keys on the bottem active. Just because a program blanks out the screen the keys at the bottem of the phone are still active. This causes acctdental key press when the phone is in my pocket and i am talking on my bt head set.

BTW thanks for your hard work and i apreiciate you time on this topic. your time is valuable. Thank you.

apeko, have you tried LockDevice? If yes, did you try activation on screen off? If not, you should try it. If it doesn't help I'll look into the issue and probably will make a version of InCall Lock that will keep keys locked until the end of call.

Actually, how about an alternative solution - what if a program locked Send and End keys while a headset is connected, without monitoring call state?

vangrieg said:
Actually, how about an alternative solution - what if a program locked Send and End keys while a headset is connected, without monitoring call state?
Click to expand...
Click to collapse
Yes that would work.
Is it the monitoring of the call status that makes the program tricky?
To be specific the problem is the Send and End keys while on the BT head set. Your alternitive solution should work fine. But the actual key locking problem on the touch hd is the Send and End keys only
1. when the phone rings-(solved)
2. during a call when on a BT head set- if it has to lock the Send &End keys allways during a BT connection i think i could live with that!

this is an awesome app!! so simple yet so usefull, thank you for your work!!

apeko said:
Is it the monitoring of the call status that makes the program tricky?
Click to expand...
Click to collapse
Well, maybe you don't need all these details, but since you asked... It brings the number of checks the program has to perform to like a dozen from one trigger and one check.
First, it has to monitor if a headset is present - that's two or three checks (HeadsetPresent, A2DPConected and HeadsetAudio).
Then there are like two dozen Phone states, out of which probably three to five are relevant - PhoneIncomingCall, PhoneCallCalling, PhoneCallTalking, PhoneCallOnHold(?), PhoneConferenceCall. Maybe not - that's a Windows flavor after all. In any case, there's no simple "Phone is actively used" state. Or maybe there is - needs investigation.
All this stuff needs testing in different combinations, and I don't even have a bluetooth headset to test (that is, I have it but for the life of me can't remember where it is).
When you introduce all these things you're asking for bugs because it's difficult to predict what they all mean exactly and how they work with each other. That's why I'm reluctant to add features like this into an application that seems to work fine. I'll look into the issue though, and if I do add this functionality it will be in a separate application.

Related

Switching off the display

Hi. Does anybody have an idea how to switch off the display manually through pressing some keys or menu icons? I found only the timed automatic possibility in the battery settings, but I need the manual function too. On each of my previous phones (TyTN II, i780) it was always possible. Thanks for your help.
Use mortscript to turn-off display and then assign the script to a hardware button.
ctyong said:
Use mortscript to turn-off display and then assign the script to a hardware button.
Click to expand...
Click to collapse
Hmm, a little bit to complicated, but thanks for the tip
So your not talking about putting it to sleep by touching the power button? I think all my wm devices have this feature, killing the screen instantly.
I'm not sure about the request - anyway isn't it what Rose does when you press and hold End Call button?
cbreze said:
So your not talking about putting it to sleep by touching the power button? I think all my wm devices have this feature, killing the screen instantly.
Click to expand...
Click to collapse
If you touch the power button on the Rose, a menu apears, wher you can choose: if you want to switch the whole phone off, lock the keys, call the task manager or the comm manager. There is unfortunatelly no option to switch only the display off
lelopet said:
I'm not sure about the request - anyway isn't it what Rose does when you press and hold End Call button?
Click to expand...
Click to collapse
Pressing and holding the End Call button locks the keys, it doesnt switch the display off
...simply very easy, I am looking for something like psshutxp but for smartphones (WM 6.1 standard). You can everywhere find only the pocket PC version for WM professional, which you can not unfortunatelly install on a smartphone.
Yeah, I was thinking of the pro devices. They seem to get all the love anyway. There seems to not be a built in solution then. Setting the screen timeout real short would be only option and thats not a good option at all. If I come across anything I'll repost. I've just been using the red end key. But I'm so hooked on my touch pro right now I've forgotten the rose for awhile.
Here is the solution for all my troubles http://forum.xda-developers.com/showthread.php?t=473017

(how) can the call reject button be disabled?

Hi!
Is there a way to disable the call reject function of the external media button?
It happens from time to time, if i receive a call on my STRTRK that at the moment when getting the device out of my pocket I accidentally press the call decline button.
Thanks a lot in advance for any hint,
christian
i think you can only do this by locking all the outside buttons after closing:
settings --> external screen --> button lock after closing
thanks nirak, i tried that already. but unfortunatly this only locks the buttons when the phone is in idle state. as soon as a call comes in the buttons still will work in order to reject the call...
i thought there might probably be some sort of registry key or something to disable that.
if there is no possibility it's not a big deal. it just happens from time to time.
thanks anyway,
christian

[Request] Alternative touchless/trackball based unlock

Hi,
All previous iterations of android phones could be unlocked without using the touchscreen, eg. by tapping the menu button twice. Problem is that the menu button is capacitive on the Nexus. You can't press it with gloves, nor can you slide unlock the screen.
The trackball was useful because you could minimally operate apps with it, like skipping tracks in the music app..
Could it be possible to develop an alternate unlock mecanism, such as drawing a large circle using the trackball ?
I look forward to not having to take off my gloves to skip tracks when skiing
Use your nose jk it would be nice to have another way to unlock.
Or even map it to the volume button (while still requiring the slide-to-unlock) and I'd be happy as a clam. The power button is just hard to reach for some, sometimes.
parrot5 said:
Or even map it to the volume button (while still requiring the slide-to-unlock) and I'd be happy as a clam. The power button is just hard to reach for some, sometimes.
Click to expand...
Click to collapse
...always looking out for the dwarfs of the world. very nice of you!
I'd be happy to be able at least wake up the phone with the trackball!
That would be perfect to me...i would assume its just some directory setting..does anyone know how to achieve this?
bradyonly said:
Use your nose jk it would be nice to have another way to unlock.
Click to expand...
Click to collapse
I did actually contemplate that, but my pride talked me out of doing it on a crowded ski slope.
Probably my biggest con for the phone...unlocking it requires pressing the power button. Someone please hack this!
I'm trying to find the way to wake up with the trackball, but not found
I want to group same number or contact on call log (like as Iphone) also
This is a fantastic idea. I am honestly worried about wearing out the power button. I don't find this a flaw with the nexus, but I would love the option to turning on the screen with one tap and unlocking the phone with a second tap. I know this will make a lot of people happy. can someone please do it?
i'd love a "trackball-on" feature - the g1 could be activated with every button on it.
this was good to unburden the power-button.
There is an app that doing that...Lock 2.0
rename Lock 2.0.zip to Lock 2.0.apk
parrot5 said:
Or even map it to the volume button (while still requiring the slide-to-unlock) and I'd be happy as a clam. The power button is just hard to reach for some, sometimes.
Click to expand...
Click to collapse
It costs money, but if you buy the ICE Lockscreen (By appventive), it lets you wake up the screen with the volume rocker. Its also a good thing to have just in case you get into an accident or something happens to you.
This is a feature I have wanted to see since I received the N1 ... I would love to see a Trackball -On feature ......... almost like, I hate to say it .... but how the iphone unlocks.
SatanR1 said:
This is a feature I have wanted to see since I received the N1 ... I would love to see a Trackball -On feature ......... almost like, I hate to say it .... but how the iphone unlocks.
Click to expand...
Click to collapse
Then Lock 2.0 would be ideal for you.
I have always hated how we need to press the power button to lock and unlock this thing. Makes me feel like I have an iphone. My G1 and mytouch had the power button at the bottom so it was not a problem.
If I could develop the app I would, but unfortunately I do not know how.
chuspitin said:
There is an app that doing that...Lock 2.0
rename Lock 2.0.zip to Lock 2.0.apk
Click to expand...
Click to collapse
Does that prevent the phone to sleep?
detox702 said:
It costs money, but if you buy the ICE Lockscreen (By appventive), it lets you wake up the screen with the volume rocker. Its also a good thing to have just in case you get into an accident or something happens to you.
Click to expand...
Click to collapse
Edit: I just tried it. Even the trackball works!
Update: It's buggy. Doesn't work every single time. Sometimes you'll have to press Power first.
Does this prevent the phone to sleep?
i just tried lock 2.0 and i guess it does the job but its so hideous! none of the themes are formated for the N1. so the background will only reach 75% but it does allow you to turn the screen on via volume switch. if they can do this, then im sure someone else can do this too. idc if i have to pay, i just want my normal 2.1 lock screen and just be able to use the volume or trackball. someone make this happen please! if we ask enough it might just happen
Tried Lock 2.0. Its ok, seem to have some bugs. password protect is a joke. If you press the trackball to wake up, all you have to do is tap the home key and it goes home bypassing the lock screen. You can do that with or without the password protect on. I think it needs some work to be compatable with the nexus one.
Even better if someone could create something, a device, or something so that I could unless my N1 with only the power of my mind itself! thnik2unlock.apk kgo
I use "screen mode widget" from the Market

Physical keys and lock screen

Hi all!
During test of android rom "darkstone" I noticed that, with the lock screen, the physical keys are enabled anyway while there is an incoming call.
There is a program like "InCall Lock" for wm?
thanks!
r.
Do you mean when youre on the lockscreen and you press I think either the back or windows button it unlocks the phone??? Cuz I hate when that happens, is there anyway to stop that from happening?
Carliz89 said:
Do you mean when youre on the lockscreen and you press I think either the back or windows button it unlocks the phone??? Cuz I hate when that happens, is there anyway to stop that from happening?
Click to expand...
Click to collapse
no, i mean that i can answer with physical key to an incoming call even if my phone is locked...
in hd2 with wm there is a program that avoid this (forum.xda-developers.com/showthread.php?t=612899), I was wondering if there is something similar with android.
r.
nothing about this issue?
Reopened per request from member stating that issue affecting other builds also.
Peace,
Josh
Is there a solution for this issue yet?
I have tried several (sense) builds and on every one I can answer (or reject) a call by pressing the buttons instead of unlocking the screen first.
That is annoying when wearing the phone in the pocket.
On none-sense builds (Default Android lock-screen) I found out something astonishing:
If the screen is locked and the display is turned on I can unlock the device by pressing the windows-key...
Can anybody confirm this issue?
That's not an issue, it's a feature
On android phones you can unlock the phone using the 'menu' hardware key. With our builds, the windows key is mapped as the 'menu' key.
So that's why you can unlock the phone using your windows key
Cryonic90 said:
That's not an issue, it's a feature
On android phones you can unlock the phone using the 'menu' hardware key. With our builds, the windows key is mapped as the 'menu' key.
So that's why you can unlock the phone using your windows key
Click to expand...
Click to collapse
HI
I think that what he is looking is that if you have the phone is you pocket and you get a incall, you don't want to answer/cancel the phone because you accidentaly push the "answer or cancel hardware button"..
Is there a way to dissable the hardware buttons when the phone is locked??
Iosu
iosub said:
HI
I think that what he is looking is that if you have the phone is you pocket and you get a incall, you don't want to answer/cancel the phone because you accidentaly push the "answer or cancel hardware button"..
Is there a way to dissable the hardware buttons when the phone is locked??
Iosu
Click to expand...
Click to collapse
Yes there is! Pull em out your device when locking!
Nah stupid joke, really don't know mate. Didn't even know about this issue, will test it out tonight and report my findings.
Anybody found a solution yet?

Is there a way to mute the microphone during a call using a hardware key?

anybody know? Perhaps some app that does it?
Basically I have to do a lot of long conference calls for work, and generally speaking you need to mute yourself when you're not talking so the line stays quiet. It is a bit awkward putting the phone down, waiting the screen to turn on and jabbing the mute button on the screen each time you want to say something quick. Being able to mute via a hardware key would therefore be extremely useful but i can't seem to figure if it's possible!
thank you
rathga said:
anybody know? Perhaps some app that does it?
Basically I have to do a lot of long conference calls for work, and generally speaking you need to mute yourself when you're not talking so the line stays quiet. It is a bit awkward putting the phone down, waiting the screen to turn on and jabbing the mute button on the screen each time you want to say something quick. Being able to mute via a hardware key would therefore be extremely useful but i can't seem to figure if it's possible!
thank you
Click to expand...
Click to collapse
Use a headset control app, like Jays, from the Play Store, and wired headset. One of the controls is double-click of the headset button to mute/unmute. Or you can customize the button to mute/unmute depending on how you click or hold the button, or whatever.
This does not work. In call controls aren't affected while music controls can be customized . Any work around?
This is a bit old thread, but I felt the same need and made a hardware switch that does exactly what you're looking for.
Visit the Kickstarter page below and let me know what you think:
Search JackFlip on Kickstarter.

Categories

Resources