I have an app running for years on Lenovo TAB M10 and M8 without problem in past years.
But recently the camera does not show preview and any camera actions will crash the app in both tablets. I use the cameraex library for taking photo and scanning barcode. Taking photo ok but scanning barcode cannot even show camera preview.
However, same app is still running ok on my old and new mobile phones.
When debug in tablet, I noticed "Wait For CamBarcode_Ready" has never come back. Both manifest and RunningPermission have allow camera permission. When further debug, the program stopped at
inside CameraExClass libray.
Two camera are found and back camera is selected. But just cannot initialize on Tablet. Any hints to this problem?
But recently the camera does not show preview and any camera actions will crash the app in both tablets. I use the cameraex library for taking photo and scanning barcode. Taking photo ok but scanning barcode cannot even show camera preview.
However, same app is still running ok on my old and new mobile phones.
B4X:
gRp.CheckAndRequest(gRp.PERMISSION_CAMERA)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result = False Then
Log("Camera no permission")
Return
End If
pnl_preview.Visible = True
camex.Initialize(pnl_preview, False, Me, "CamBarcode")
Wait For CamBarcode_Ready (Success As Boolean)
If Success Then
...
When debug in tablet, I noticed "Wait For CamBarcode_Ready" has never come back. Both manifest and RunningPermission have allow camera permission. When further debug, the program stopped at
B4X:
cam.Initialize2(Panel1, "camera", id)
inside CameraExClass libray.
Two camera are found and back camera is selected. But just cannot initialize on Tablet. Any hints to this problem?
Last edited: