FORUMS

Possibility to use the light sensor as a proximity sensor

482 posts
Thanks Meter: 145
 
By DaanJordaan, Senior Member on 16th November 2009, 02:04 AM
Post Reply Email Thread
Dear devs,

I'm not a developer (I shouldn't even be posting here)

Maybe it's possible to use the light sensor for "dim/waking screen" during a call.
It would be tricky ofcourse because what if you're in a dark environment
But perhaps it's possible to let the sensor scan the intensity of light right after pressing the call/pick-up button, whether you call someone or pick up a call yourself.
Since I don't have any experience in developing whatsoever, I hope this idea may be a great pain in the *** / project.

Sincerely

DaanJordaan

P.S. It's a shame we haven't got a proximity sensor, but we do have Android
16th November 2009, 02:09 AM |#2  
OP Senior Member
Thanks Meter: 145
 
More
P.P.S
G-Sensor waking just does not work
16th November 2009, 02:15 AM |#3  
Inactive Recognized Developer
Flag Walnutport, PA
Thanks Meter: 47
 
Donate to Me
More
This would be a great app to make however I dont think we have access to the light sensor. If there is an api for it that would be great though.
16th November 2009, 03:39 AM |#4  
OP Senior Member
Thanks Meter: 145
 
More
Just realised something, is the sensor even sensitive enough to register small changes in light intensity? (If you're in a dark environment i mean)
16th November 2009, 03:58 AM |#5  
Senior Member
Thanks Meter: 8
 
More
this is totally possible, since HTC has done this with WM phones.
16th November 2009, 08:01 AM |#6  
awsy44's Avatar
Senior Member
Flag Auckland
Thanks Meter: 22
 
More
The HTC Eris (Verizon's HTC Hero) has that function already , if someone can actually get the eris coding maybe we can it out.
16th November 2009, 08:51 AM |#7  
Senior Member
Thanks Meter: 0
 
More
Thumbs up
Quote:
Originally Posted by awsy44

The HTC Eris (Verizon's HTC Hero) has that function already , if someone can actually get the eris coding maybe we can it out.

Did the Eris not have a hardware proximity sensor?

And the part about the WM phones was right, although I think that this method used the front facing cameras
16th November 2009, 10:20 AM |#8  
kendong2's Avatar
Inactive Recognized Developer
Thanks Meter: 74
 
More
i am afraid if it was that easy htc would have done it in the first place... don't see that feature coming too soon tbh.
16th November 2009, 10:49 AM |#9  
jaapschaap's Avatar
Senior Member
Thanks Meter: 14
 
More
Quote:
Originally Posted by E2K

Did the Eris not have a hardware proximity sensor?

And the part about the WM phones was right, although I think that this method used the front facing cameras

Lol i don't believe that... that would reduce battery lifetime by 20x :P + it take to much time to start camera so fast as you can pick up youre phone
16th November 2009, 11:06 AM |#10  
Senior Member
Thanks Meter: 0
 
More
Wink
Quote:
Originally Posted by jaapschaap

Lol i don't believe that... that would reduce battery lifetime by 20x :P + it take to much time to start camera so fast as you can pick up youre phone

then use a htc diamond and cover (only) the front-camera hole when in a call and see what happens
16th November 2009, 11:36 AM |#11  
Senior Member
Thanks Meter: 0
 
More
Its a nice idea, however as far as I can tell we have no access to the light sensor, which is a right pain. If anyone knows how please post it! Need access for another program I'm writing and cannot work it out!
Post Reply Subscribe to Thread

Tags
light, proximity, sensor

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes