We have an application that utilizes the rear 'Camera' to capture item image. So far all devices that we have tested are all working correctly in term of capturing image as it should be, until Samsung Galaxy SIII (S3).
On Samsung Galaxy SIII only, we are observing that Camera.onPictureTaken() is returning an raw image appears to interlaced instead of proper capture image. Debugging each of camera parameter setting, determine that the following parameter setter is causing the issue. If we don't explicitly setPictureSize() on parameter, then it is working as expected:
parameters.setPictureSize(targetPictureSize);
By default parameters.getPictureSize() return as [w,h]=[3264, 2448]
The 'targetPictureSize' is determined base on closest matching Size return from below, in this case, we have used the [w,h]=[1600, 1200] size as the 'targetPictureSize'
camera.getParameters().getSupportedPictureSizes();
Anyone know the reason and a workaround?