[Barcode Scanner] Open again the camera scanning
How to open again the camera after success get 1st raw value, I found addOnSuccessListener but i don't know how to open camera 2nd time.
Mobile environment Android
ML Kit SDK doesn't control when to open or close the camera.
Do you mean the camera is closed automatically after first successful scan? Do you use ML Kit sample App or your own? If your own, can you provide some code snippet.
can you share the code of the function handling it.
I'm using ML Kit from this , here's my code
Activity :
And i put startCamera in onCreate, I try to open camera again after get the barcode string. The camera doesn't close but i can't get another barcode.
BarcodeAnalyzer:

yeah i am looking on it
I'm not sure if you do the camera unbinding & binding at the right place, maybe you can take a look at ML Kit's Camerax sample usage. https://github.com/googlesamples/mlkit/blob/master/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt
Closing due to no activity, please reopen if needed.