yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] iomeste:
This WAS probably the worst design flaw in the Touch HD. No more
[Windows Mobile Apps and Games] vangrieg:
Here's InCall Lock Headset Edition beta. This will (well, at least should) work exactly as the original program without a headset present.

When a wired or wireless headset is present it should lock Send and End keys until the end of the conversation.

As I don't have a headset right now, I need somebody to test it in real-life conditions before I add it to the first post. I only tested the program on the emulator.

For now, the installer doesn't create a shortcut in the Startup folder and you have to manually launch the application, and it won't be activated automatically after a soft reset. I did it so that in case something goes wrong (it shouldn't, but still) you can reset your device without InCall Lock.

Please provide feedback.
[Windows Mobile Apps and Games] vangrieg:
I wish it were that simple. There are a couple WM/HTC design flaws related to accidental pressing of things here and there that annoy the hell out of me.

Number one is disabling touchscreen during calls. Because the standard procedure only turns off screen once, if you get another call during a conversation screen goes on and then you have to turn it on and off manually. Also, at the end of the conversation screen is turned on again (why, for the life of me?). There is a tool called Touch In-Call Screen Tweak (or something like that), but it never worked properly for me. Probably because the sensors are turned off when the screen is blanked first time.

Number two is waking up on reminders. You can disable SMS/Mail wakeup events but not reminders, so here you get another case when your device stays on in your pocket.

Hope I'll figure out how to tackle these two, but this will be much more time-consuming.
[Windows Mobile Apps and Games] apeko:
Ok I tested In_call_lock_hs. The program does lock the keys somewhat just a few problems to work out.

1. I get an occasional hook fault when a incomming call comes in.

2. When the End key is pressed the call does not disconect but the screen turns on and screen unlocks. (the screen needs to stay off. keep the power butten to activate the screen.)

3. When the Send key is pressed the screen turns on and the mute turns on.

4. The program names: In_call_lock and In_call_lock_hs compete.

Very close! Every touch HD user will love you if you can get this to work.
[Windows Mobile Apps and Games] vangrieg:
I sent you a PM, please check.
[Windows Mobile Apps and Games] Dmitry N:
Yes, it's called exactly as you called it :)

And yes, it has always worked fine for me. You have to check "Ignore 1st screen off" if you have a stock ROM (or a ROM based on the stock one).

I'm on kwbr's Topix, and I don't have to check this option.

It will be even better if you check "Ignore light sensor". It's really weird, but the light sensor thing works fine unless you are under direct sinlight. Putting the phone near your ear or even closing the sensor with your finger has no effect - screen stays on.
[Windows Mobile Apps and Games] golightlygl:
At last!

At last, a simple and effective app. Thank you.

I too would be interetsed in the "headset" edition and would be happy to test. I ahven't downloaded the posted beta as I gather you may have made a change or two since then.

Incidentally, I use TICST and find it flawless (on a Touch HD with Laurentius26 3.55 ROM). You might want to give it another go (I uncheck the Ignore Light Sensor option)

Now if you can only solve the "wake on reminder" issue you posted, I think we'll be there.
[Windows Mobile Apps and Games] golightlygl:
Actually, there is a slight issue with this but maybe solving it will introduce too many complications.

When a call comes in, h/w keys are locked and only real option is "slide to answer". This is perfect.

However, if a call goes unanswered then the screen stays on leading to other accidental presses. Maybe the solution is another microapp that waits for a notification of "missed call" and suspends the device but only if the screen is showing the incoming call screen when the event fires. The latter option would prveent the machine turning off if you were choosing to ignore a call and carry on using the PDA.
[Windows Mobile Apps and Games] vangrieg:
This is really weird because the light sensor has always worked perfectly for me in bright sunlight. In dimmer conditions it just didn't work. I tweaked the registry a bit and now it works fine. The problem is that it does so only once.

Maybe I'll find a way to prevent the dialer from turning it off.

Please try to install the beta and then replace the executable file in \Program Files\InCall Lock with the one from attachment.

Hmm, I think I tried all options, but I'll try the app again, although I don't like the idea of not using the light sensor.

I have my fingers crossed. :) Unfortunately, I'm not a programmer at all and have a busy job, so it can take a while before I solve the problem, if it will ever happen. :)
[Windows Mobile Apps and Games] golightlygl:
Will do. Will report back after testing with headset tonight.

No. no. Uncheck the box so that the app does use the light sensor. On stock Touch HD ROMS this doesn't work as the light sensor is turned off when in a call. But if you use a cooked ROM (especially a Rhodium or Topaz one) then the light sensor stays on during a call and can be used by TCIST perfectly. I also clear all the settings in the APPS tab.
[Windows Mobile Apps and Games] vangrieg:
Spot on! My original idea was to make an app that would do several things:

Do what InCall Lock does currently - Check

Prevent device wakeup from events such as reminders

Have a functionality similar to that of In-Call Screen Tweak, but with a simpler interface and also capable of keeping the light sensor alive on Touch HD

If the previous thing is too difficult, at least prevent wakeups during phone calls, and only allow users to turn screen on

Turn the screen off right after the call (and possibly all the time during the call if a headset is connected)

If all this were accomplished, there would be no need in a locker at all. Later I decided that it would be much better/useful to make several apps instead of a big one because it would allow me to publish whatever is ready faster, keep the code much smaller (actually, options would at least double it), keep the program simple (options are often confusing) and also people who need only parts of the functionality wouldn't have to install the whole thing (I personally hate this).

Unfortunately, things don't go as fast as I'd like them to.
[Windows Mobile Apps and Games] vangrieg:
Thanks. If you're going to test with a wired headset, there's one thing that worries me - I suspect that the program will lock the headset button together with the Send key.
[Windows Mobile Apps and Games] golightlygl:
I can see we're going to get on! Your frustrations with the phone seem to mirror mine exactly and your approach to application development makes a lot of sense to me.

Although I programmed a bit several decades ago, I just tinker these days. I've never written a windows mobile program but would be willing to read some code, check documentation and make suggestions where I can - if you need or want any help that is.
[Windows Mobile Apps and Games] golightlygl:
I'll look at both bluetooth and wired.
[Windows Mobile Apps and Games] vangrieg:
I installed it again, unchecked "Ignore light sensor", checked "Ignore first screen off", and it doesn't work. To begin with, it takes the app several seconds to launch on a call - I see a Busy cursor and then it vibrates briefly and then screen turns off. Too late to be useful. After that, taking the phone to bright light or turning it horizontally doesn't turn the screen on. If I turn the screen on it doesn't turn it off automatically anymore. In other words, it shows stock behavior. I have a ROM with Topaz dialer.
[Windows Mobile Apps and Games] vangrieg:
Thanks for offering help, I think I'll use some advice - this is my first programming experience ever (well, apart from some PHP coding a few years ago for fun and some BASIC stuff at school some 20 years ago). :)
[Windows Mobile Apps and Games] vangrieg:
Ha, this In-Call tweak does work. I just was too impatient, it takes quite a while for it to start because it uses Persistent Notifications, and .Net apps start slowly. And of course I messed up with options - I thought "Always on" meant it would stay resident. Yet another argument for zero config app design. :)
[Windows Mobile Apps and Games] golightlygl:
Headset option

Firstly the wired headset: you're right, the answer button on the wired headset is also locked when the hardware buttons are locked.

Bluetooth: This works as expected but only after about three or four seconds after the call comes through. In that time, the hardware buttons remain active rendering the app ineffective.

I'll keep testing for you if you like but actually I just realised that the TICST bluetooth functions give me exactly the control needed so in use, I will stick with your basic version.

Try TCIST in real-world use rather than moving to horizontal and strong light etc. I don't think horizontal is the change that the authors ahve set up for the g-sensor. Just take a call, put it to your ear, squint sideways and you'll see the screen is off. bring the phone away from your ear and hold it in front of you and voilà - it comes back on. Unless, that is, there's an incompatibility with your particular ROM or you have something else overriding the function.
[Windows Mobile Apps and Games] vangrieg:
Thanks for testing.

I did manage to make this screen tweak working, the application just has too many settings which are worded less than perfectly. So I guess I'll abandon the HS version for now since there is a working solution.

I have an idea on how to implement no wake on reminder, in the meanwhile.
[Windows Mobile Apps and Games] akira28hk:
This is exactly what I am looking for, I am using TouchLockPro it but it does random lock the screen and buttons and I feel it's too bulky....

However after I uninstalled TLP and installed urs, ur app gives error no matter I start the app right away after install or restart the phone. Does it need .net 3.5?
[Windows Mobile Apps and Games] vangrieg:
Yes, it needs .Net 3.5.
[Windows Mobile Apps and Games] golightlygl:
Excellent - let me know if there's anythign I can do to help.
[Windows Mobile Apps and Games] zakko:
uau... just what i need!!!

Perfect

Thanks!!
[Windows Mobile Apps and Games] the_cool:
Mate, this is what I have been looking for since I got my Touch HD! I cannot believe it took this long for someone to make this simple program and I thank you for it!

Well done :D
[Windows Mobile Apps and Games] golightlygl:
Lock on reminder

Hi vangreig,

Any news on this? Is there anything I can do to help?
[Windows Mobile Apps and Games] vangrieg:
It's moving very slowly - still mazing through WM's power manager API (aimed at the opposite - keeping device awake) with quirky OEM implementations where nothing ever works as you expect. A busy dayjob and a crashed home fileserver where all my code has been stored don't help either. :)

Thanks for offering help, but from the programming point of view it's a very straightforward exercise, the problems are related to WM and device specific issues which require experimenting, so this is not going as fast as I wish it were.
[Windows Mobile Apps and Games] golightlygl:
Thanks for the update. I'll keep checking back.
[Windows Mobile Apps and Games] fritzwai6:
Let's try it, great job man:)
[Windows Mobile Apps and Games] D1n0:
Thank you very much for this App!

I've spend a lot of time to find exactly this solution to only lock the HW Keys on an incoming call.

Will now have another look at TICST to solve to problem with a call made via bluetooth headset. golightlygl, how does TICST help me to prevent to press any HW buttons when starting a call via bluetooth headset and voice dial? I can not see any options in the description that offers a function to block the HW keys...
[Windows Mobile Apps and Games] Roupette:
Thank you very much, this app and TICST are THE Ultimate-Must-Have for our HD!! So thank you for Incall Lock, that was really the missing app!!
[Windows Mobile Apps and Games] NeoXTC:
woohoo works perfectly. Now I won't have to worry about accidently pressing the keys when I pull the touch HD out of my pocket :D

Small app and does just what as described :)

Cheers
[Windows Mobile Apps and Games] NeoXTC:
Found a bug. During incoming call. If I press the hardware key that you disabled (pickup/hangup), it would stop the vibration. Not a biggy but thought I let u know :)
[Windows Mobile Apps and Games] vangrieg:
It isn't happening here. Do you have any button remapping software installed?
[Windows Mobile Apps and Games] Zuzler:
I am getting an error "failed acquiring of the hook" if the caller hangs up before answering.
[Windows Mobile Apps and Games] NeoXTC:
ok I've tested it. It stops but if I keep letting it ring it'll vibrate again and then if I press it it'll stop for a while and then vibrates again :)

I don't have any hardware key mapping.

Maybe this is a feature? :)
[Windows Mobile Apps and Games] vangrieg:
Maybe it's feature, but definitely not one I can take credit for. My guess is that it's another quirk in the buggy 6.5 betas.
[Windows Mobile Apps and Games] vangrieg:
Are you using the version from the first post or the "HS" version? If the latter then I'm afraid I'll have to ask you to switch to the normal one, the HS is buggy.
[Windows Mobile Apps and Games] iggy:
Unfortunately not working for me, no errors, I can enable/disable but even after soft reset and calling my cell it does not show anything regarding a lock screen.

EDIT: anyone have a screenshot of how this should look?
[Windows Mobile Apps and Games] vangrieg:
The program simply locks hardware keys temporarily, what do you expect it to show? There is no screenshot because there is nothing to shoot.
[Windows Mobile Apps and Games] iggy:
ahh, my misunderstanding, I thought it locked the screen while in call in order to avoid pushing anything when the phone is near your face.
[Windows Mobile Apps and Games] vangrieg:
You can use Touch In-Call Screen Tweak for that purpose.
[Windows Mobile Apps and Games] froggyman:
Hi Vangrieg,

Glad to find such application for locking up the buttons.

Going to download & test it.

Thanks
[Windows Mobile Apps and Games] lancehlot:
Allows pulling Fuze out of pocket w/o accidentally pushing h/w answer button

Excellent software! Simple and to the point. I like the part where it "will not use any CPU cycles at all as it relies on WM Notification system and doesn't do any polling".

Since the Fuze has a slide to answer, I don't need to work about accidentally answering/ignoring call while pulling the phone out. :)

Thanks!
[Windows Mobile Apps and Games] samusalo:
EnergyROM (23081) Manila 2.1 hangs when ending calls

I have used this with EnergyROMs for some time now and it has been working without problems. Now when I updated to the latest EnergyROM 6.5.1 (23081) Manila 2.1 when ending calls with InCall lock installed it hangs the device completely on every fifth calls or so. When I uninstalled it, the device has not hanged since, so it looks like InCall lock is the problem. Anyone else having similar problems?
[Windows Mobile Apps and Games] vangrieg:
This is very strange since the application doesn't even do anything when you end a call. Are you using the version from the first post?
[Windows Mobile Apps and Games] samusalo:
Yes I am using the version from the first post. I am still going to do some extensive testing over the weekend with and without the InCall Lock. Will post you the results.

edit: Of course it might have been just a coincidence. But even though, I just installed it again and now testing.
[Windows Mobile Apps and Games] D1n0:
Never had any problems with WM6.1...

Now flashed WM6.5 official ROM for TD2 and it hangs with an error.

Anyone else with this problem?
[Windows Mobile Apps and Games] vangrieg:
Do you have .Net 3.5? Here's how to check.

Also, it would be much more helpful if you gave a bit more details about the error.
[Windows Mobile Apps and Games] D1n0:
Thanks for the quick reply!

Didn't know that .NET 3.5 was necessary, sorry.

Now it works great! A really useful App.
[Windows Mobile Apps and Games] vangrieg:
I didn't know it either - I built it for 3.5 but thought it should work with 2.0 as well, so thanks for pointing to this!

I updated the first post with compatibility information.
[Windows Mobile Apps and Games] AHFAN:
just found this softward, try to install it, thanks a lot.
[Windows Mobile Apps and Games] AHFAN:
Hi,

I hv try to install to my HTC HD and successful already, but foun that it cannot be running after installation, would u help on this? is it not support HTC HD?:mad:
[Windows Mobile Apps and Games] vangrieg:
I use it on HD. Do you have .Net 3.5? Instructions on how to check are on the previous page...
[Windows Mobile Apps and Games] AHFAN:
thanks. my version is 2.0 only, how can i update to 3.5?
[Windows Mobile Apps and Games] vangrieg:
You can do it by installing the 3.5 cab, you'll find it here on xda-developers easily.
[Windows Mobile Apps and Games] dbryan:
Just tried this on my HD2 without sucess, i have installed net 3.5 but can still answer calls with keys which means i answer or cancel them when taking the phone out of my pocket. Any ideas?
[Windows Mobile Apps and Games] vangrieg:
Hmmm, strange. It doesn't throw any errors, no popups saying "Failed to acquire hook" or anything cryptic like that, just silently doesn't do the job, is that your experience?

First of all, can you double check if the program is actually running? Is it shown by the task manager in the list of processes? Just to be sure.

Next, try to replace the program exe with the attached one (just unzip it and copy over to \Program Files\InCall Lock. It's basically the same thing but works in a different way - it tries to lock all hardware buttons except the volume rocker. So if HTC played a dirty trick with virtual key codes it should still work.

If this doesn't help... I don't know what to do without having an HD2 really. I'll try to look if there were any changes in WM6.5 with regard to what the program is doing, but don't expect to see anything dramatic there - I know for sure that quite a few people are using it successfully on 6.5, and I haven't read anything about 6.5 that would suggest changes that would break ICL. But I'll try anyway - who knows. If it's not a 6.5 compatibility issue then it might be a real problem, like HTC implementing hardware keys in a really quirky way. They actually have a bad habit of doing things like that, kind of. But I won't know it until I grap hold of an HD2 myself, so it may take a while.

If someone has some C# programming experience and have Visual Studio on their PC together with HD2 in their hands, I can share what I did and how to check for things... Otherwise it'll have to wait.
[Windows Mobile Apps and Games] cazer:
Does this app(is it possible to) even lock the send/end keys when I'm in a call?

I almost only use headset when Im in a call, and have the problem when I put the phone in my pocket and accidentally push send (pauses the call) or end key (hang up the call).

And it doens't help if I press the Powerbutton, since it doens' lock the Send/end keys.

BR

C
[Windows Mobile Apps and Games] vangrieg:
No it doesn't lock anything after an incoming call is answered. There was already a request for a headset edition, but I never got to completing it, unfortunately, and it certainly won't happen soon due to time constraints.
[Windows Mobile Apps and Games] cazer:
Ok thank you, for the information. Even tough it was sad to hear that it doesn't work.

Do you or anyone else know of such an application?

Keep up the good work!

BR

C
[Windows Mobile Apps and Games] dbryan:
Thanks for your reply and the updated exe to try. I have re-installed and ran with the new .exe but buttons are still unlocked, when activating the software i get no error messages and can confirm that it is actually running as it appears in the processes list. Thanks for looking at it though.
[Windows Mobile Apps and Games] vangrieg:
I would suggest that you look at full-blown lockers like Pocket Shield or CSDEVCTL (I think that's what it's called). To the best of my knowledge, no dedicated solutions for just locking buttons exist - I wouldn't bother to write this one if they did.
[Windows Mobile Apps and Games] dbryan:
Tried both of these and S2U2, no joy with those either. Very strange
[Windows Mobile Apps and Games] cazer:
Thank you, at the moment I'm trying out PocketShield. It seams to be similar to what Im after, but wit more features that I'm actually after.

CSdevCTRL I'v been looking into and its not really that either.

What Im looking for is:

1: Make a call (headset).

2: Call connects

3: Press power button

4: The screen goes black and the 4 bottom buttons locks (like it does when im not making a call)

5: Talking :)

6: About to finish my call,

7: Press Power button again to get the buttons and screen active

8: Hang up my call, with either the soft button on screen or the hard button below.

BR

C
[Windows Mobile Apps and Games] letsgoflyers81:
I installed this on my Sprint Touch Pro 2 running EnergyROM 6.5 Leo and it works great. One thing I noticed is that if I press the answer key on an incoming call the ringer gets muted. It doesn't answer, just stops the ringtone. Is that intentional?
[Windows Mobile Apps and Games] vangrieg:
No, that's not intentional, and the program doesn't do anything with ringtones or volume. All it does is intercept key presses and not pass them on to the system until you answer the call. Why on some custom ROMs the send button mutes the ring is totally beyond my comprehension.
[Windows Mobile Apps and Games] pckshd:
I know that Tachi dialer internally sends a 117 keypress message right after you slide to answer, to mute the ring while the call is being connected. Not sure if it does the same when pressing the answer key, but could be the reason.
[Windows Mobile Apps and Games] vangrieg:
That would cause muting indeed.
[Windows Mobile Apps and Games] letsgoflyers81:
That makes sense. It's certainly not a big deal, just a curiosity.
[Windows Mobile Apps and Games] fyase:
I have installed into my Leo but it didn't work... any advise?
[Windows Mobile Apps and Games] vangrieg:
It doesn't work on HD2. I don't know why or how to fix this yet.
[Windows Mobile Apps and Games] dj_ghosie:
Please work on the HD2 solution, really looking forward to it.

Thanks a lot for your hard work!
[Windows Mobile Apps and Games] fotone:
Quote |

:)
[Windows Mobile Apps and Games] Zuzler:
I think it is not an HD2 issue, but a WM 6.5(.x) issue.

Still have the "hook" errors, I am on a Diamond running WM 6.5.1 (Makeveral's ROMs)
[Windows Mobile Apps and Games] vangrieg:
I know about hook errors on custom 6.5 ROMs on various devices, but on HD2 hooks seem to be set just fine.
[Windows Mobile Apps and Games] Tom_Doe:
Just tried on HD2; end button seems disabled but answer key still works :(.
[Windows Mobile Apps and Games] fotone:
any solution for HD2 (LEO)?
[Windows Mobile Apps and Games] vangrieg:
Yes, in a way, there's a workaround. Go to \Windows\Start menu, find phone.lnk, copy it to \Windows and rename there to Long_Send.lnk.
[Windows Mobile Apps and Games] fotone:
Thank you very much. Now try. Congratulations for the program.

Ciao