Android Question working with both camera library

hookshy

Well-Known Member
Licensed User
Longtime User
I have problem runinng both camera_ex and camera 2 library in the same app.

Definition of cs as camerasize from cameraExClass is initialised from camera2 and it's property
cs.Width is read only

B4X:
Public Sub GetPictureSize As CameraSize
 
    r.target = parameters
    r.target = r.RunMethod("getPictureSize")
    Dim cs As CameraSize
    cs.Width = r.GetField("width")' this property is not allowed in camera 2 library
    cs.Height = r.GetField("height")' cs camerasize is not initialised from camera library
    Return cs
 
 
End Sub
 

hookshy

Well-Known Member
Licensed User
Longtime User
If I do not use both I must do something with the sdk minimum version ... set it higher than 21 for camera2 to work
What do you remoment if there is no good idea to use both ?
 
Upvote 0
Top