Code example for Camera

Methods: cancelAutoFocus

0
  } 
 
  synchronized void stop() { 
    if (useAutoFocus) {
      try { 
        camera.cancelAutoFocus();
      } catch (RuntimeException re) {
        // Have heard RuntimeException reported in Android 4.0.x+; continue? 
        Log.w(TAG, "Unexpected exception while cancelling focusing", re);
      } 
    } 
    if (outstandingTask != null) {
      outstandingTask.cancel();
      outstandingTask = null;
    } 
    active = false;
  } 
 
}