I have used similar code to the one shown in the following question: How to scan for QR codes on button press?. I can now have the camera preview active all the time and only scan when my button is pressed. My problem is, I have found that if I (accidentally) push the button before being focussed on a QR code, the reader will automatically scan the next QR code it see's. Is there any way I can account for any accidental button presses and only scan the QR code when I have one in view?
Any help would be greatly appreciated!