android - Camera Preview on Galaxy S -


I have an app that uses the camera, which is sending preview for a SurfaceHolder HTC Desire But everything works well, which I am developing, but when I go to Samsung Galaxy S, the image is rotated 90 degrees from the preview.

The code tries to match the best size returned from the parameter. Gates-covered previews (), along with surface width and height (as has been changed from surface to width and height).

(Image taken from the app is also rotated on the Galaxy)

Is anyone else having problems with preview on Galaxy? Or have the problems been better yet?

Yes, just like, see:

correct rotation as well as cam To keep the final image in the preview, I make it a manual rotation on the captive image

  .. Last Matrix matrix = new matrix (); Matrix. PostScale (scaleWidth, scaleHeight); Matrix.preRotate (degree); // New bitmap final bitmap resized bitmap = bitmap.creditbetaMap (bitmap.org, x, y, width, height, matrix, true); ..  

Comments