getSupportedPictureSize() returns a value which is not actually supported by Nexus4

前端 未结 3 1130
孤街浪徒
孤街浪徒 2020-12-15 00:51

I have extended a SurfaceView for displaying the camera feed for a very simple camera application. To find the optimal preview size for each device, I used this sample code

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 01:24

    what's actually up there, BUT, summed up: thanks Google!

    • some devices support 1.33
    • some devices support 1.77

    in my test scenario, a Nexus 4 with 4.3 and another one with 4.4 both are NOT supporting 1.33, BUT 1.77 ...

    i cannot say how many devices are out there, or which is actually the unsupported type (above it's mentioned different way) .. so basically only option. let the user decide. if there are problems -> offer an option to change aspect ratio.

    i did it this way now.

    hope this helps someone -> good luck :)

提交回复
热议问题