Open PawelTypiak opened 5 years ago
Facing same issue. Are there any workarounds?
Yep, i found one.
You have to update also the cameraView like:
cameraView.setPreviewResolution(new Resolution(previewResolution.height,previewResolution.width));
just remember to switch the width and height of your preview Resolution
Thanks! I also saw that method, but it did not worked, because I did not switched values. What I did was the following: stop fotoapparat instance, remove fotoapparat instance, create a new one with desired resolution and then call ### fotoapparat.start() o new one. Your solution seems much better. Does it work well on all devices, also?
I don't get why you need to switch Resolution values?
I'm glad that I helped.
My app has over 100k users and I didn't have any issues with this solution whatsoever. I guess cameraView has implemented Resolution
in a reversed way.
I am trying to change the resolution of the preview and picture to the highest resolution by using
updateConfiguration
.this is the code I use:
this is the method
highestResolution
inResolutionSelectorHelper
and method
prepareListForRatio
The problem is that the photo resolution is changed, but preview stays the same.