Auto-focus not autofocusing


#1

I’m trying to use the auto focus function but only focusing then you use it one time:

if(runFocus==true){
       focusTimer++;
     if(focusTimer==10){
      ((ofxAndroidVideoGrabber;)grabber.getGrabber().get())setAutoFocus(true);
      runFocus=false;
    }
}
``
any one have and idea why?