@Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Log.v(TAG, "surfaceChanged"); CameraInterface.getInstance(mContext).startPreview(mSurfaceHolder, 1.333f); }
@Override public void surfaceDestroyed(SurfaceHolder holder) { Log.v(TAG, "surfaceDestroyed"); CameraInterface.getInstance(mContext).stopCamera(); }
@Override public void surfaceCreated(SurfaceHolder holder) { Log.v(TAG, "surfaceCreated"); CameraInterface.getInstance(mContext).openCamera(null, Camera.CameraInfo.CAMERA_FACING_BACK); }