I'm currently trying to make a Camera2 preview in an app, but I'm running into a problem of a skewed image on a Huawei P8 Lite, since it does not have any camera previewsizes, which corresponds well to the portrait size of the phone.
Have any of you run into this problem before, and made a good solution? I've tried scaling and cropping, but then the Bitmap I get from my textureView ignores the matrix set, when I want to actually capture the image. I'm at my wits end, and I have no idea on how to fix this problem in a good way. It's obviously possible, since Huawei does it in their own camera app. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/cf014b0d-7107-484b-adee-e6801b93b0b9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

