In CrimeCameraFragment surfaceChanged call getBestSupportedSize and parameters.setPictureSize.