View Full Version : [REQ]Answering calls using the Light sensor or Gsensor or proximity sensor?
mushufasas
30th September 2008, 01:32 PM
I was thinking if is possible to make a program that uses the light sensor to answer calls! (when u receive a call just put the phone to your ear and auto answers). I think that would be cool!
Davey101
30th September 2008, 01:53 PM
The author of Answerkeys Disabler looked at the the usability of the light sensor - his conclusion was that it was not sensitive enough for most applications - and I would expect that to include answering calls. Have a read through that thread for more info.
I think it's a daft idea anyway - lots of situations could cause a call to be accidentally answered. :)
H3IN3K3N
30th September 2008, 03:25 PM
Well, i think it would be a bad idea (sorry:) ).
What if you had it in your pocket or jacket? And when your asleep, and you get a call, then what? Your friend can hear you snoore:D or having a good time, with your gf:eek:
mushufasas
1st October 2008, 05:30 AM
Well, i think it would be a bad idea (sorry:) ).
What if you had it in your pocket or jacket? And when your asleep, and you get a call, then what? Your friend can hear you snoore:D or having a good time, with your gf:eek:
you are right
remakeru
1st October 2008, 09:50 AM
It could check the default state. If it's dark (probably in the pocket) then wait to be light(out of pocket) and than dark again to answer(ear).
But the problem is this will not work if it's night and you are somewhere outside and there's no light for the sensor to notice... Than again the application could have a setting to be active only during daylight and after sunset it would automatically disable itself.
How's that?
Marshall07
1st October 2008, 09:51 AM
IIRC, the light sensor is updated at a fixed interval. So it may not be so accurate to answer a call (eg: you put the phone to your ear but the call is answered after a bit).
Maybe it would be better to use the GSensors to capture the phone movement you made to answer a call.
Marshall
drvdijk
1st October 2008, 10:00 AM
Nom nom nom.. Interesting thread. Please do post your good ideas, then all of a sudden someone might invent the killer app :)
About the light sensor. The thing wont measure anything above 0 if lighting is poor. I mean not only in the middle of the desert at 4 AM when its darker then my coffee, but also in my fluorescently lit hallway, in which I can perfectly read a book. So the thing will always measure 0, you cannot detect changes in that, unfortunately.
mushufasas
1st October 2008, 12:56 PM
is it possible to connect the LIGHT sensor with GSensors? (ex: based on the G force produced when you look at the phone to see who's calling an then the light sensor is kicking in, if you want to answer put it at your ear, if not turn the phone face down and it shuts the ringing off!)
Just thinking......
mushufasas
1st October 2008, 03:42 PM
Nom nom nom.. Interesting thread. Please do post your good ideas, then all of a sudden someone might invent the killer app :)
About the light sensor. The thing wont measure anything above 0 if lighting is poor. I mean not only in the middle of the desert at 4 AM when its darker then my coffee, but also in my fluorescently lit hallway, in which I can perfectly read a book. So the thing will always measure 0, you cannot detect changes in that, unfortunately.
something poped out in my head. When the phone rings the light comes on, is the sensor able to pickit up?
drvdijk
1st October 2008, 04:22 PM
Nope. Tried this in the toilet in which the light was broken. It wouldn't get above 0. Taking a dump without lights is pretty hard by the way..
mushufasas
1st October 2008, 10:33 PM
No other ideas?
uniqueboy
2nd October 2008, 01:11 AM
Well...I keep my phone in it's luxurious pvc htc slide out pouch, it's pretty dark in there, if the light sensor is able to detect when the phone is in the shade of your ear it must be quite sensitive or else that just would not be possible. So imagine the phone locks automatically when it rings and then unlocks and auto answers when the light sensor detects an increased light level, You would need a few options I can't think of right now, but the normal answer button should still work in case no change is detected. So if your phone was in your pocket or pouch there would be no accidental button presses/call rejections and you would not have to press a button to answer it. = killer app. :)
Leave your phone face down on your desk, just pick it up to answer a call.
drvdijk
2nd October 2008, 08:59 AM
Well...I keep my phone in it's luxurious pvc htc slide out pouch, it's pretty dark in there, if the light sensor is able to detect when the phone is in the shade of your ear it must be quite sensitive or else that just would not be possible. So imagine the phone locks automatically when it rings and then unlocks and auto answers when the light sensor detects an increased light level, You would need a few options I can't think of right now, but the normal answer button should still work in case no change is detected. So if your phone was in your pocket or pouch there would be no accidental button presses/call rejections and you would not have to press a button to answer it. = killer app. :)
Leave your phone face down on your desk, just pick it up to answer a call.
Is that possible right now then? I'd be very interested in the software that disables the screen as soon as it hits your ear.
mushufasas
2nd October 2008, 10:42 PM
Can anybody help to make this app?
drvdijk
3rd October 2008, 09:11 AM
Give me $50 and I'll make it for you, with the limitations as noted in this thread ;)
mushufasas
3rd October 2008, 10:03 AM
Give me $50 and I'll make it for you, with the limitations as noted in this thread ;)
I don't mind donating but being so upfront asking for money is a little inappropriate in my mind but if that's what it takes let's see how many people wants it, and donate for your cup of coffee!
drvdijk
3rd October 2008, 10:38 AM
Sorry, my point wasn't to ask for money (allthough my post clearly indicates that, I now notice). My point was that I need a very good reason to develop a program of which I know in advance will not work as we both would like to see it work.
mushufasas
4th October 2008, 01:26 AM
So there is no way to make an app that auto answers when you put your phone at your ear (using GSensor or Light sensor)?
P.S. No more ideas? Or close this thread Forever!!!!
Lawliet
4th October 2008, 09:15 AM
How about an application that implements a "proximity sensor" that other phones seem to have? It's kind of annoying to have the touchscreen turned off randomly when you need to punch in some numbers for automated hotlines.
mushufasas
13th October 2008, 07:56 AM
How about an application that implements a "proximity sensor" that other phones seem to have? It's kind of annoying to have the touchscreen turned off randomly when you need to punch in some numbers for automated hotlines.
i think is a good idea!
Mandragore
13th October 2008, 10:20 AM
How about an application that implements a "proximity sensor" that other phones seem to have? It's kind of annoying to have the touchscreen turned off randomly when you need to punch in some numbers for automated hotlines.
That would be nice, not only for this purpose. But unfortunately our Diamond does not have a proximity sensor, AFAIK..
tumolo
15th October 2008, 04:57 AM
It would be nice to see something that would turn the phone back on if the diamond gets pulled away from your head. Can you combine the light with the force of pulling away from your head, or tilt the phone flat to turn the screen back on. Even that would be fine. Any ideas?
mushufasas
21st October 2008, 05:59 AM
Should we close this thread?
I see nobody is interested in making it!
xep624
21st October 2008, 07:06 AM
I'm not sure if i understood how the light sensor works, but:
Is it possible to accept the call when the light sensor detects a change from light to dark?
So, if your phone is in your pocket or it's at night, you don't have a change-in-light and nothing happens.
But when you take the diamond of your pocket, the light sensor detects "oh, wow! Light :-)" and after you hold it next to your ear the light sensor sees "oh, wow! suddenly it's dark!" and the call will be accepted..?
(sry for my bad english..)
Mandragore
21st October 2008, 05:09 PM
I'm not sure if i understood how the light sensor works, but:
Is it possible to accept the call when the light sensor detects a change from light to dark?
So, if your phone is in your pocket or it's at night, you don't have a change-in-light and nothing happens.
But when you take the diamond of your pocket, the light sensor detects "oh, wow! Light :-)" and after you hold it next to your ear the light sensor sees "oh, wow! suddenly it's dark!" and the call will be accepted..?
According to tests by drvandijk, the author of Answerkeys Disabler (http://forum.xda-developers.com/showpost.php?p=2678169&postcount=322), the sensor isn't sensitive enough to recognize "oh, wow! suddenly it's dark!", when you hold it next to your ear. Although PocketShield (http://pocketshield.netserver01.com/readme.aspx) does offer to accept the call when the light sensor detects "oh, wow! Light :-)". ;)
It's not exactly what you asked. And the author of PocketShield warns that it's a risky feature. But you could suggest your dark - light - dark sequence before answering calls, instead of only dark - light. Maybe it is possible..
jdbarclay
31st October 2008, 07:31 AM
Here you can see how LIGHT unlocks the device when exposed to it:
http://www.youtube.com/watch?v=srHIJbWa7To
As you see from the scene, it is recorded indoor and with artificial light, and works with that.
That event could also fire a call answer.
The best however is daylight. Also yellow lamps are better than white(white light is not well detected by the sensor).
Hope next devices from HTC bring a more sensible light sensor.
sourabh1510
19th January 2012, 01:15 PM
can we use the infra-red diode of the light sensor for sending remote signals to TV?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.