View Single Post
Old November 18th, 2009, 03:36 PM   #87 (permalink)
eclipsed4utoo
Member
 
eclipsed4utoo's Avatar
 
Join Date: Nov 2009
Location: Florence, SC
Posts: 435
 
Device(s): Motorola Droid
Thanks: 9
Thanked 27 Times in 11 Posts
Default

Quote:
Originally Posted by Chet View Post
hum... so how often are you calling autofocus in your background thread? infinite loop or a timer? I was running a timer before and was getting more off period. I believe the timer's run method is executed in its own thread.
infinite until a button is clicked. the while loop checks a public variable for the class. if that variable is true, it continues to call the autoFocus(). so when the button is clicked, I just set that value to false, and it stops.
eclipsed4utoo is offline  
Reply With Quote