Closed GoogleCodeExporter closed 9 years ago
Ok interesting.
I've already implemented something with proximity sensor, but was a little bit
naive and as for now works probably only with nexus one.
I have to see a little bit more in documentation to clean things.
I'll keep you in touch when something will be available to test on.
Original comment by r3gis...@gmail.com
on 30 Aug 2010 at 7:59
I can test any fixes on this device. This might also make it work with any
other devices that use the same hardware...
Original comment by jerald...@gmail.com
on 30 Aug 2010 at 11:40
New build -12-26 has a potential fix for this issue.
I reused code from the android source code (the one that aim to turn off screen
when proximity sensor is detected).
That's not the way adopted by most opensource implementation of proximity
sensor (they are all based on a value that is undocumented... I think one found
it by experience and all copied the same - as I did for my nexus one). Let me
know if my implementation works for you.
Just as reminder, correct behavior is *not* to turn off screen (it requires the
use of a private API so I postponed that) but to display an "overlay" with a
locker displayed that prevent from unwanted action with face.
Screen on/off is managed by the standard android powermanager then.
Original comment by r3gis...@gmail.com
on 31 Aug 2010 at 7:20
[deleted comment]
sensor works with galaxy I9000, not only with nexus one. I will then test the
-12-26 build, to see if something changed.
Original comment by m...@ufritz.de
on 31 Aug 2010 at 6:25
Yes you're right, thanks.
Indeed, it should be regressed on all devices with a proximity sensor.
Original comment by r3gis...@gmail.com
on 31 Aug 2010 at 6:28
I'll test this shortly and let you know how it goes. I made one call but
didn't test it properly (covering the sensor and trying to input stuff)...
Original comment by jerald...@gmail.com
on 31 Aug 2010 at 6:35
Works fine, confirmed by covering the sensors with my thumb and mashing the
different areas of the screen. I will reward you again with another bug once I
get the hang of recording a log... This is closed on my end, with a note that
if you find time to implement a screen shut off feature, it will be perfect.
Once again thanks! Amazing! I'm e-mailing you guys beer once the physicists
at CERN figure that out!
Original comment by jerald...@gmail.com
on 1 Sep 2010 at 12:00
Good news.
Hopefully other devices has not changed the android implementation of the
powermanager and has just ensure test passes with their device so my fix is
probably good since based on the same implementation than the one of android
core system.
If somebody find a regression on another device, just cry ;).
Original comment by r3gis...@gmail.com
on 1 Sep 2010 at 7:56
In 0.00.12-35 > proximity sensor now turn off screen if possible (device
support it).
Original comment by r3gis...@gmail.com
on 20 Sep 2010 at 6:46
Wow, thanks! You guys have saved me tons of cash on t-mobile minutes, I'll
donate something as soon as I can!
Original comment by jerald...@gmail.com
on 21 Sep 2010 at 11:59
Original issue reported on code.google.com by
jerald...@gmail.com
on 30 Aug 2010 at 7:29