denoson

Base Camera

by denoson

Base Camera Android

Screenshots

Base Camera Android
Base Camera Android
Base Camera Android

Specification

How to Use

Sample Code

private void capture_autofocus() { toLog("capture_autofocus()"); if((CameraManager.active_camera == null) || CameraManager.is_camera_busy || CameraManager.is_autofocus_busy) { return;} setup_marker_focus(Const.EFocusState.fsWait, true); CameraManager.is_autofocus_busy = true; CameraManager.set_focus_auto_cont(true); CameraManager.active_camera.autoFocus(new Camera.AutoFocusCallback() { @Override public void onAutoFocus(boolean success, Camera camera) { toLog(" > autofocus result: " + success); camera.autoFocus(null); if(success) { playSound(Const.ESoundType.stFocusGood); setup_marker_focus(Const.EFocusState.fsGood, true); setup_marker(Const.EMarkerType.mtWait, true); camera.takePicture(null, null, jpegCallback); // good focus make picture } else { playSound(Const.ESoundType.stFocusBad); setup_marker_focus(Const.EFocusState.fsBad, true); // bad focus no need picture animation_focus_hide(); // hide after 1 second } CameraManager.is_autofocus_busy = false; } }); }

Comments (0)

  • {{com.username}}
    {{com.username}}
    Buyer
    Seller

    {{com.username}}

    {{com.ctime}}

    {{com.content}}

    • {{com2.username}}
      {{com2.username}}
      Buyer
      Seller

      {{com2.username}}

      {{com2.ctime}}

      {{com2.content}}