FYI This is not a ratio issue.
I have an application with a custom camera that for all intents and purposes works fine except in the following scenario.
I tap the button to take a picture. Immediately afterward i move the camera. The preview displays the correct image. The image saved to disk is a split second after that when the camera is moving away.. and is blurred.
The button tap calls takePicture(null, null, this);
The listener:
public void onPictureTaken(byte[] data, Camera camera) {
File pictureFileDir = getTempDir(activity);
//Build FileName
...
String filenameOfOriginal = filename + "-original" + "." + suffix;
File originalPictureFile = new File(filenameOfOriginal);
try {
FileUtils.writeByteArrayToFile(originalPictureFile, data);
Dbg.logD(TAG, "New Image saved:" + filenameOfOriginal);
} catch (IOException error) {
Dbg.logD(TAG, "File" + filenameOfModified + " not saved: " + error.getMessage(), error);
error.printStackTrace();
}
...
}
Any ideas?