Code example for SurfaceView

Methods: setVisibility

0
				//mCamSV = null; 
				context.runOnUiThread(new Runnable() {
					@Override 
					public void run() { 
						Log.i(TAG, "CameraPreview: Set gone...");
						mCamSV.setVisibility(View.GONE);
						Log.i(TAG, "CameraPreview: Set gone done");
					} 
				}); 
				hasCallback = false;
			} 
		} 
 
		@Override 
		public void surfaceChanged(SurfaceHolder holder, int format, int width,
				int height) {
			Log.v(TAG, "CameraPreview: Surface changed "+width+"x"+height+" ...");
		} 
 
		@Override 
		public void surfaceCreated(SurfaceHolder holder) {