B4A Library android-quick-response-code - another 1D & 2D barcode scanner

Johan Schoeman

Expert
Licensed User
Longtime User
Its possible to add a torch method from b4a and using java code?

(the people works in the night reading barcodes and the torch is very useful)
I don't think it will be possible. The library takes charge of the camera and unless the camera is released by the library you will not be able to do anything to get the torch and the scanner to work simultaneously from two different libraries or even making use of inline Java code. The code to make torch and scanner work together needs to be added to this projects library.

I will see if I can add it...
 

Johan Schoeman

Expert
Licensed User
Longtime User

dfrutos

Member
Licensed User
Longtime User
I have problems with some barcodes with the Zxing lib. I tried with quick response code barcode and have not problems. For this reason i like this lib. Just torch method is necesary because without light is very difficult to read barcodes.
 

Attachments

  • bad_reader_barcode.JPG
    16.8 KB · Views: 271

Johan Schoeman

Expert
Licensed User
Longtime User
I have problems with some barcodes with the Zxing lib. I tried with quick response code barcode and have not problems. For this reason i like this lib. Just torch method is necesary because without light is very difficult to read barcodes.
I have looked at the original Github code and this is not a minor change. A lot of code than needs to change/added/amended. Will look into it when I have some time available.
 

Johan Schoeman

Expert
Licensed User
Longtime User
I have problems with some barcodes with the Zxing lib. I tried with quick response code barcode and have not problems. For this reason i like this lib. Just torch method is necesary because without light is very difficult to read barcodes.
Have you tried this one
https://www.b4x.com/android/forum/t...zxing-project-as-it-is-on-10-july-2016.68829/

You should be able to switch on/off the torch with the volume up/down buttons of your device. Much easier to add events to the project in the above link than to add code to the project in this thread
 

Johan Schoeman

Expert
Licensed User
Longtime User
I have problems with some barcodes with the Zxing lib. I tried with quick response code barcode and have not problems. For this reason i like this lib. Just torch method is necesary because without light is very difficult to read barcodes.
i can read your UPC_A barcode without a problem....
 

Johan Schoeman

Expert
Licensed User
Longtime User
I have problems with some barcodes with the Zxing lib. I tried with quick response code barcode and have not problems. For this reason i like this lib. Just torch method is necesary because without light is very difficult to read barcodes.
The project here
https://www.b4x.com/android/forum/t...scan-qr-codes-and-other-1d-2d-barcodes.49084/
scans you code posted above without any problem whatsoever. And by using the volume up/down buttons of your device you can switch the torch on/off

 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…