@copas2 I never said anything about locking/unlocking. Idk if its locking or not since we just want the screen off
Also the other thing is a bug not a feature ^^
All I can suggest is to complain about these at Google and/or HTC. The latter doesn't concern you.
For me it looks fine now. This little app just isn't made for the masses. Feel free to work around the code, or hire someone if you need to.
I shared this to help others who have the Desire (I don't know anything about the Nexus One) to work around this specific problem. Now I don't have more or less of the issues I had before. Which means I'm almost done.
I don't really see why the functionality of this tool bothers you.
1. Screen gets switched off by you or the screen timeout.
2. When something's near, the screen stays off.
3. When that something's gets far enough, the screen turns on. (I think this is what disturbes you in particular but this isn't done by this tool. It's done by Android...)
4. You are still able to manually switch the screen off (again) or wait for the timeout to let it happen automatically. And correct, it stays off but when something comes near and gets far again, the screen turns back on. Who cares? See number 2 again. Sorry but from my point of view it's far not as disturbing (if it is at all) as the original mechanism.
If I ever designed a touch-screen device I would've never done it without a proper working proximity sensing and corresponding functionality. Unfortunately there are a lot of gadgets out there without a physical sensor. I think (hope) this is why it's still in the egg. I don't get it but I've already complained about it in one of the early posts here. Maybe future touch-screens will combine touches with presses, I don't know.
So, sorry if I can't solve all the issues but it's not my job to do that. I've heard about someone who knows someone who has been told that the iPhone wouldn't have these kinda problems, so...
But to be serious I would have never imaged a device like the Desire or the Nexus to be so fundamentally incomplete.