Code example for Camera.Parameters

Methods: getPictureSize, setPreviewSize

0
	} 
 
	private void setPreviewResolution(Parameters p) {
		int maxWidth = 0;
		int maxHeight = 0;
		p.setPreviewSize(p.getPictureSize().width, p.getPictureSize().height);
	} 
 
	@Override 
	public void surfaceCreated(SurfaceHolder holder) {
		myCamera = Camera.open();
 
		cameraParameters = myCamera.getParameters();
		menu = new PopUpWindow(this, cameraParameters, popUpView);
		if (optionValues != null && optionValues.size() > 0) {
			menu.setOptionsIndex(optionValues);
		} 
	} 
 
	@Override 
	public void surfaceDestroyed(SurfaceHolder holder) {