View Single Post
Old December 5th, 2009, 08:42 AM   #34 (permalink)
osli
Member
 
Join Date: Nov 2009
Posts: 120
 
Device(s):
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
osli is offline  
Reply With Quote