I am scanning barcode in android using camera. But there is requirement to switch on the flash light automatically if there is dark area while scanning the barcode and after reading the barcode, will turn it off. I want it in same way as android default camera app does.
For this I also tried with Light sensor but it is not best suitable for my app.