good morning,
I'm using the zxing_scanner library to read QR codes,
additional to that I need to send 3 photos by FTP, to capture the photos I'm
using CameraEx Class.
Both work well until I mix the functions, example:
1. Click on the first photo for camera. (Works correctly)
2. I open the QR reader. (Works correctly).
3. Click on second photo for camera. (Error).
(RuntimeException) java.lang.RuntimeException: getParameters failed (empty parameters)
I thought it was the qr problem, but if I open the qr first and then the first camera works correctly, but if I open the qr reader again and open the camera again
the same mistake.
code to open the camera
I'm using the zxing_scanner library to read QR codes,
additional to that I need to send 3 photos by FTP, to capture the photos I'm
using CameraEx Class.
Both work well until I mix the functions, example:
1. Click on the first photo for camera. (Works correctly)
2. I open the QR reader. (Works correctly).
3. Click on second photo for camera. (Error).
(RuntimeException) java.lang.RuntimeException: getParameters failed (empty parameters)
I thought it was the qr problem, but if I open the qr first and then the first camera works correctly, but if I open the qr reader again and open the camera again
the same mistake.
code to open the camera
B4X:
Sub OpenCamera
If camara.IsInitialized Then
camara.Release
End If
frontCamera = False
flash = "off"
PnlCamera.BringToFront
PnlCamera.Visible = True
Try
camara.Initialize(VisualizadorCamara, frontCamera, Me, "camara")
Catch
Msgbox("Problemas al iniciar la camara, intentelo nuevamente","Alerta")
Log(LastException)
End Try
End Sub