Beispiel #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);
 }
Beispiel #2
0
 @Override
 public void surfaceDestroyed(SurfaceHolder holder) {
   Log.v(TAG, "surfaceDestroyed");
   CameraInterface.getInstance(mContext).stopCamera();
 }
Beispiel #3
0
 @Override
 public void surfaceCreated(SurfaceHolder holder) {
   Log.v(TAG, "surfaceCreated");
   CameraInterface.getInstance(mContext).openCamera(null, Camera.CameraInfo.CAMERA_FACING_BACK);
 }