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