I have some codes of taking picture which works in Android 2.1 and 2.2. But these codes broke at Android 2.3. After spending time to fix this issue which went in vain, I wou
I'm not sure what the setOptimalSize method used in your code, but make sure you have set camera parameter
mCamera.setPictureSize(captureSize.width, captureSize.height); mCamera.setPictureFormat(ImageFormat.JPEG);