[IDEA] Front Camera as Proximity Sensor - Windows Mobile Development and Hacking General

Would it be difficult to use the front camera as a proximity sensor during calls only?
When "phone" is launched, if the front camera is blacked out, the screen will turn off.

Allready done..
Hey There,
Thats allready build in in my HTc touch pro 2.
When you receive a call, and you put it to your ear, the screen fades out.
Very handy.
Just so you know!
Greetzz
WyCksoN

Yes, because your TP2 has a proximity sensor.. and the TD2 doesn't have one

Incall Screen Tweak can do that and more!! search the forums for a link

Related

Proximity sensor in Touch HD

I recently read on gsmarena that the touch hd has a proximity sensor for auto turn off.
is this true?
if yes, could we use this sensor to automatically answer a call for example
maybe we can add to the sensory sdk of koushi a class for the proximity sensor.
just a thought
tommy.touma said:
I recently read on gsmarena that the touch hd has a proximity sensor for auto turn off.
is this true?
if yes, could we use this sensor to automatically answer a call for example
maybe we can add to the sensory sdk of koushi a class for the proximity sensor.
just a thought
Click to expand...
Click to collapse
I'm guessing that the "proximity" sensor that has been discussed is actually the light sensor beside the earpiece. This can be used to turn the backlight off when applied to your ear during a call. using this as a means to asnwer a call would not be reliable, and what would happen if the phone is in your pocket etc etc.
ardsar said:
I'm guessing that the "proximity" sensor that has been discussed is actually the light sensor beside the earpiece. This can be used to turn the backlight off when applied to your ear during a call. using this as a means to asnwer a call would not be reliable, and what would happen if the phone is in your pocket etc etc.
Click to expand...
Click to collapse
i think is just like the iphone when u place it next to ear the it goes off to save battery ?
It doesn't work like the iPhone.
The HD, like all the devices using a Qualcomm chip, is just switching off the screen when a call starts, the phone next to the ear or not. It just doesn't use the light sensor at all during a call.
I asked for a soft that permit the use of the light and G sensor during a call to switch off/on the screen. You'll find more info here : http://forum.xda-developers.com/showthread.php?t=451456
lpaso said:
It doesn't work like the iPhone.
The HD, like all the devices using a Qualcomm chip, is just switching off the screen when a call starts, the phone next to the ear or not. It just doesn't use the light sensor at all during a call.
I asked for a soft that permit the use of the light and G sensor during a call to switch off/on the screen. You'll find more info here : http://forum.xda-developers.com/showthread.php?t=451456
Click to expand...
Click to collapse
I'm looking for this.. If you find a solution send me a PM, I will do the same
Thanks!
Proximty and resume
The proximty sensor will turn off the screen when places the phone next to your ear. I guess this help to prevent accidental touch on buttons. However, I have a problem with my new Touch Pro2:
When the phone is placed away from your ear, the screen will go back to home instead of previous phone dial pad. When I listen to my voice mail or join a conference, a lot of navigation is needed in order to dial the command buttons.(press a 7 for next, or # for ....)
Any chance to make the screen resume at previous location? My first improvement suggestion to HTC.
Concerning this sensor, funny I thought it was some myth as mine never seemed to work or only half assed. Then after flashing many diff roms and settling on the "energy" Rom I see that much to my pleasent surprise it works perfect, just as intended. This is a fantastic feature and my first device it has actually functioned properly on.
mobiler2 said:
The proximty sensor will turn off the screen when places the phone next to your ear. I guess this help to prevent accidental touch on buttons. However, I have a problem with my new Touch Pro2:
When the phone is placed away from your ear, the screen will go back to home instead of previous phone dial pad. When I listen to my voice mail or join a conference, a lot of navigation is needed in order to dial the command buttons.(press a 7 for next, or # for ....)
Any chance to make the screen resume at previous location? My first improvement suggestion to HTC.
Click to expand...
Click to collapse
hi
yeh there is a setting somewhere that lets you go straight to home when you turn the device on instead of loading the screen it was already on.
its set to default but you can change it.
i forgot what the app was called though, i think it was possibly an option in hd tweak or something
THERE IS NO proximity sensor in touch hd
However I've been told that "Touch Incall Screen Tweak" does beautifully on the HD and probably it's what you´re asking.
http://forum.xda-developers.com/showthread.php?t=488991
leobox1 said:
THERE IS NO proximity sensor in touch hd
Click to expand...
Click to collapse
From what I've been reading spec wise I believe your correct, but I cannot explain then why when I make a call with the HD up to my ear the screen goes dark then when I pull it away to input a number from the kp it lights up. Is it the light sensor then? I'll check in the NRG energy ROM forum and search for some info as I'm running his ROM. I love this feature btw and have not noticed it in any other ROM I've tried.
cbreze said:
From what I've been reading spec wise I believe your correct, but I cannot explain then why when I make a call with the HD up to my ear the screen goes dark then when I pull it away to input a number from the kp it lights up. Is it the light sensor then? I'll check in the NRG energy ROM forum and search for some info as I'm running his ROM. I love this feature btw and have not noticed it in any other ROM I've tried.
Click to expand...
Click to collapse
That's "Touch Incall Screen Tweak" in action!
Thanks for the response. Works a treat.

[Q] Proximity sensor

Hi,
How proximity sensor should work in X10?
Apparently mine doesn't work.
While I talk screen is not blank and I wondering how to enable or adjust proximity sensor to disable touch screen during conversation.
Any ideas?
Cheers!
edit: never mind, i found solution forum.xda-developers.com/showthread.php?t=736654

Samsung Galaxy S 3 Sensors!?

Hello,
So today i noticed on the left side of the speaker, that there are 3 sensors, both of them are together on the same place, which should be Light sensor and proximity sensor... but what about the other one more to the left? Seems pretty much like a Small LED to me.
Check this picture guys and u will see it clear enough!
http://www.sync-blog.com/wp-content/uploads/2010/06/Samsung-Galaxy-S-Series-Smartphone.jpg
Update after a test [Post #4]
Center: Proximity
Right: Light
Left: ?
Is one the light sensor for the auto-brightness thing, and the other two possibly a 'sender/reciever' set up for detecting when it's close to your face in order to turn the screen off during a call?
petethesparky said:
Is one the light sensor for the auto-brightness thing, and the other two possibly a 'sender/reciever' set up for detecting when it's close to your face in order to turn the screen off during a call?
Click to expand...
Click to collapse
I believe the proximity sensor and light sensor are both together, which leaves the left sensor... i wonder what it is
May be u r right, i am dying to find out!
I will test it with a Q-tip. I pointed a flashlight with high brigthness on the sensors now, the left one doesnt seem like a LED... so that option just kinda died
Ok tested it, qtip during the call shows that the proximity sensor is the one in the CENTER.
Used a black fabric for the light sensor... with my finger over the fabric covered the left and right sensors, result: RIGHT sensor is the light sensor!
Leaves: Left sensor.... what is it?
Center: Proximity
Right: Light
Left: ?
spy cam - big brother is watching you!
beats me i hadnt even noticed it!
I would probably guess that the two closest together are a Transmitter/ Receiver pair.
It could be emitting infra-red and using a receiver to detect how far away an object is based upon the light returned.
One way to sometimes 'see' this is to use a normal camera to look at it, if it shows a white spot, there is a good chance it's emitting IR.
Logicalstep

proximity sernsor: is it working?

Hello, I'd like to ask you if the proximity sensor works during a call.
It happens that when I put the phone next to my ear, sometimes the call ends because I touch the end call area with my face.
Is there a way to see if the proximity sensor is disabled?
I'm not sure but mine works perfectly so far..
Yea, the problem was that I used the viva-voice (I don't know the english translation).
maybe you touch the screen and end call? when you close far phone to the head wait one second and then backlight is off... but dont touch the screen yuor ear or cheek before the scren isn't off.

screen off, when talk end - proximity sensor

I from Poland and little speak english. But try describe my problem.
When I choose/answer call, screen turn off. Is ok.
But when I end speak, screen no turn on. I must press power.
Then I see screen lock.
I check proximity sensor in androidsensor. Is ok.
I think is problem in software. Turn on needlessly screen lock.
ı had same issue.I solved that with uninstall update of asus dialer ,contacts and calling screen, and now it is working very well.
I use dialer one. Asus dialer I uninstall.
Do you have screen protector on it? Is there any hole at proximity sensor?
kriszg said:
Do you have screen protector on it? Is there any hole at proximity sensor?
Click to expand...
Click to collapse
This.. I had the same problem, solved it by cutting a piece of my screen protector over proximity sensor
In titanium backup I no see asus dialer.
But shopplay is.
I uninstall update and now ok.
thx ahmt142
I have the same issue, a double tap on unlock button wakes the screen again. Dont make calls that much so no big deal
You can check if prox sensor is bad by opening calculator app and typing ".12345+=" (no quotes) and testing sensor by moving had close and away. Also cheap screen/tempered glass without hole for sensor, causes issues
Sent from M919V Galaxy S4 via XDA Premium HD app.

Categories

Resources