Search in sources :

Example 1 with CameraManager

use of com.lingtuan.firefly.quickmark.camera.CameraManager in project SmartMesh_Android by SmartMeshFoundation.

the class CaptureActivity method onResume.

@SuppressWarnings("deprecation")
@Override
protected void onResume() {
    super.onResume();
    cameraManager = new CameraManager(getApplication());
    viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_view);
    viewfinderView.setCameraManager(cameraManager);
    handler = null;
    resetStatusView();
    SurfaceView surfaceView = (SurfaceView) findViewById(R.id.preview_view);
    SurfaceHolder surfaceHolder = surfaceView.getHolder();
    if (hasSurface) {
        initCamera(surfaceHolder);
    } else {
        surfaceHolder.addCallback(this);
        surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
    }
    beepManager.updatePrefs();
    ambientLightManager.start(cameraManager);
    inactivityTimer.onResume();
    decodeFormats = null;
    characterSet = null;
}
Also used : SurfaceHolder(android.view.SurfaceHolder) CameraManager(com.lingtuan.firefly.quickmark.camera.CameraManager) SurfaceView(android.view.SurfaceView)

Aggregations

SurfaceHolder (android.view.SurfaceHolder)1 SurfaceView (android.view.SurfaceView)1 CameraManager (com.lingtuan.firefly.quickmark.camera.CameraManager)1