Android Question CameraEx class has problem in Android-14

roddy

Member
Licensed User
Longtime User
CameraEx class in Android-13 is fine, but there is a problem in Android-14.

run this code
GetSupportedPicturesSizes:
Sub BTsee_Click   
    Dim pictureSizes() As CameraSize = camEx.GetSupportedPicturesSizes
    Dim current As CameraSize = camEx.GetPictureSize
    For i = 0 To pictureSizes.Length - 1
        If pictureSizes(i).Width = current.Width And pictureSizes(i).Height = current.Height Then Exit
    Next
    Dim ps As CameraSize = pictureSizes((i+1) Mod pictureSizes.Length)
    camEx.SetPictureSize(ps.Width, ps.Height)
    ToastMessageShow("No: " & (i+1) & "  PicturesSizes: " & ps.Width & "x" & ps.Height, True)
End Sub


Got error message
Error occurred
An error has occurred in
Sub: cameraexclass_getsupportedpicturessizes (java line:478)
java.lang.NoSuchMethodException:
java.lang.Object.getSupportedPictureSizes []
Continue?

How to solve the problem of Android-14.?
 

DonManfred

Expert
Licensed User
Longtime User
Upload a small project showing the problem.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top