Code example for Camera.Parameters

Methods: getPictureSize, setPictureSize

0
		} 
	} 
 
	private void setCameraPictureSize() { 
		Camera.Parameters parameters = this.camera.getParameters();
		if (parameters.getPictureSize() != this.getBestPictureSize()) {
			parameters.setPictureSize(getBestPictureSize().width,
					getBestPictureSize().height);
			this.camera.setParameters(parameters);
		} 
	} 
 
	@Override 
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		Log.d(TAG, "onLayout()");
		/* 
		 * if (changed && getChildCount() > 0 && this.camera != null) { final 
		 * View child = getChildAt(0); 
		 * Log.d(TAG,"r:"+this.getPreviewRight()+" l:" 
		 * +this.getPreviewLeft()+" b:" 
		 * +this.getPreviewBottom()+" t:"+this.getPreviewTop());