2013/11/03

Android Camera 實現連續對焦功能

實現連續對焦的思維就是當不成立時再度呼叫onAutoFocus自身
直到成立為止

private final AutoFocusCallback autoFocusCallback = new AutoFocusCallback() {
 @Override
 public void onAutoFocus(boolean success, Camera camera) {
 if (success)
  ...
 }else
  onAutoFocus(success, camera);
};