Android Question Get Error getParameters failed (empty parameters) Using CameraExClass

mayahandayani

Member
Licensed User
Hi!
I used CameraExClass (https://www.b4x.com/android/forum/t...oogle-play-services-vision.89705/page-3#posts) to scan QR Code & Data Matrix but sometimes I've got error

(RuntimeException) java.lang.RuntimeException: getParameters failed (empty parameters)

on this sub
B4X:
Private Sub Camera_Ready (Success As Boolean)
    If Success Then
        r.target = cam
        nativeCam = r.GetField("camera")
        r.target = nativeCam
        parameters = r.RunMethod("getParameters")
        SetDisplayOrientation
    Else
        Log("success = false, " & LastException)
    End If
    CallSub2(target, event & "_ready", Success)
End Sub

if firsttime is true, not error and when i go to other activity and back to activity scan camera error

any solution?
 
Last edited:
Top