如何裁剪摄像机图像在Android版本3.0+纵向视图? [英] How to crop camera images for portrait view in Android version 3.0+?
问题描述
我已经使用这个链接作物的形象。它的工作以及为Android 2.3.3及以上的。我一直在使用这种光源$ C $ C为Android 3.0 +所面临的问题。
I have used this link to crop image. It worked well for Android 2.3.3 and older ones. I have faced the problem in using this source code for Android 3.0+.
问题是如果我从画廊的照片中,它通常作物。但是,如果我拍张照片在设备上,然后我有吐司消息的无法修剪图片的。我在三星GALAXY S II在做测试。
我有面子的问题上改变方向。这code景观运作良好,但我曾在纵向视图面对的问题。
The problem is if I take the photo from the gallery, it crops normally. But if I take a picture on the device then I have got Toast message "unable to crop image". I'm doing testing on Samsung GALAXY S II. I have face problem on orientation change .. This code working well for landscape but i have face problem in portrait view.
推荐答案
我已经得到了答案我的事情问题的变化方向。这是通过解决的android:configChanges =方向
清单文件
i have got the answer i thing problem in change orientation . this is solve by using android:configChanges="orientation"
in manifest file
这篇关于如何裁剪摄像机图像在Android版本3.0+纵向视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!