How to take a photo of the same aspect ratio as in preview size?
问题 99.9% of all answers on a question in title are as follows: When you searching through the List<Camera.Size> , provided by Camera.Parameters#getSupportedPictureSizes() try to find the size of the same aspect ratio as the camera's preview size which you set via Camera.Parameters.html#setPreviewSize(int,int), or as close as possible. That's fine, but what if I can't find the picture size of the same aspect ratio as in preview size (Android gives you no guarantee that for every preview size