Code example for Camera.Parameters

Methods: getSupportedPictureSizes, setPictureSize

0
			camera.setDisplayOrientation(0);
		} 
		 
		Parameters parameters = camera.getParameters();
		//int length = parameters.getSupportedPictureSizes().size(); 
		List<Size> sizeList = parameters.getSupportedPictureSizes();
//		for(Size size : sizeList) { 
//			if(size.width <= 2048) { 
				Size size = sizeList.get(13);
				parameters.setPictureSize(size.width, size.height); // Default:2048x1536
				camera.setParameters(parameters);
//				break; 
//			} 
//		} 
	} 
 
	public void surfaceDestroyed(SurfaceHolder holder) {
		cameraRelease(); 
	} 
 
	public void surfaceChanged(SurfaceHolder holder, int format, int width,