there are several problems:
does the camera support .5? does the device support .5 who will do the math to figure out the view (not me)?
you can handle problem #1 with erel's cam2 class:
public Sub getZoomRange As Object
Return GetFromCameraCharacteristic("CONTROL_ZOOM_RATIO_RANGE")
End Sub
in main (or it could be in cam2 class)
Dim zjo As JavaObject
zjo = cam.getZoomRange
' public static final Key<Range<Float>>
dim minzoom as float = zjo.RunMethod("getLower",Null)
dim maxzoom as float = zjo.RunMethod("getUpper",Null)
Log("min: " & minzoom & " max: " & maxzoom)
when i run this on my camera, i get: min: 0.5304937958717346 max: 8
so my camera (and maybe software) is capable of .5 wide view.
if your result says 1, that means you don't have .5 view.
in erel's camera2 example, there is a sub which handles zooming, but
i don't think it works for values less than 1. zooming with camera2 is not
handled the same way as with the original camera class. i don't use
camera2, and i'm sure i'll be dead before the original camera class no
longer works, so i'll leave the math to you. erel's sub works for zooming
in. i would guess you reverse the operation for values < 1.