开发者

Android : Camera issue with 2.3 onwards

开发者 https://www.devze.com 2023-03-27 13:12 出处:网络
I have developed camera application using SurfaceView. It captures image and saves to the sdcard. In 2.1 and 2.2 it works fine b开发者_JS百科ut in 2.3 onwards it gives problem.

I have developed camera application using SurfaceView. It captures image and saves to the sdcard. In 2.1 and 2.2 it works fine b开发者_JS百科ut in 2.3 onwards it gives problem.

The exact problem in 2.3 is when I open my camera I am able to see preview in portrait mode but when image is saved its in landscape mode.

I dont know why this is happening? The application works fine in 2.1 and 2.2. If I take picture in portrait mode it saves in portrait only.

waiting for replies.

Thanks in advance.


I've had a similar problem. Looks like the SDK has some breaking changes. Try using the setDisplayOrientation, it solved my problem, hopefully, it will help you.

Good luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号