Quote:
Originally Posted by osli
Hey Tom... I'm no programming guru, but I had a suggestion for a future update or for you to play with. Not sure how your code works at the moment, but I'd guess you just have a threshold value set below which the app kicks in and locks the screen? Right?
How about trying a modification that reads the sensor value when the phone app is open or an incoming call is present, but before the call/answer button is pressed. Read the sensor value again after a call is initiated/answered, and do a quick calc to compare the delta (either absolute or percentage, would have to play with it to see which worked better). Set the lock behavior for a delta threshold, not an absolute threshold. Might help with variable environmental light levels.
|
Hi,
Thats a good idea but unfortunalty the problem with it being too sensitive is with the hardware. I do use a threshold, but the threshold is 0! It seems to take a lot of light for the sensor to read anything but 0. Might look at using the g-sensor in low light situation but have more immediate bugs to fix first!