Code example for SurfaceView

Methods: setVisibility

0
			context.runOnUiThread(new Runnable() { 
				 
				@Override 
				public void run() { 
					Log.i(TAG, "CameraPreview: Set visible..."); 
					mCamSV.setVisibility(View.VISIBLE); 
					Log.i(TAG, "CameraPreview: Set visible done"); 
				} 
			}); 
			Log.v(TAG, "CameraPreview: Constructor done"); 
		} 
		 
		public void startPreview() 
		{ 
			Log.v(TAG, "CameraPreview: Start preview..."); 
			mCamera.startPreview(); 
			context.runOnUiThread(new Runnable() { 
				@Override 
				public void run() { 
					//Log.i(TAG, "CameraPreview: Set gone..."); 
					Log.i(TAG, "CameraPreview: Dismiss");