In CameraConfiguraionManager
you also need to add googleGlassInit(camera)
in setDesiredCameraParameters
.
parameters.setPreviewSize(cameraResolution.x, cameraResolution.y);
camera.setParameters(parameters);
googleGlassInit(camera); // added this line
Camera.Parameters afterParameters = camera.getParameters();
Camera.Size afterSize = afterParameters.getPreviewSize();
I hope this help you! This works for me :)
PD: I also use 640x360 so that shouldn't be a problem.