Notes:
a. Take note of the B4A project's Manifest file in case you start a new project from scratch b. Use your device's volume up/down buttons to switch on/off the torch
c. Take note of this in the B4A code to reference the additional resources in point (3) above
I tried many libraries. I am using the latest ZxingStandAlone. Something is missing in all the libraries. If there is flash on/off, there is no camera selection. If there is a camera selection, there is no flash. I tried running Barcode Scanner using Intent and returning value. It didn't, unfortunately. ZxingStandAlone seems to be working fine now. But it doesn't have flash either.
Notes:
a. Take note of the B4A project's Manifest file in case you start a new project from scratch b. Use your device's volume up/down buttons to switch on/off the torch
c. Take note of this in the B4A code to reference the additional resources in point (3) above