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.