Is it possible to constrain the size of the qr scanner to be within the app screen ?
I'd like to add a button to cancel the scanner as once it's been fired there seems to be no way to return to the app screen, other than by scanning a code.
My project is a QR code based sign in utility, each user has a unique QR code to scan into the app.
The android device (tablet) is held in a "cradle" which covers the handset buttons so that users cant turn it off or generally "fiddle" with the device.
Version 1 is working > click button > scan QR code > it's posted to a server for validation > response displayed ... so far so good.
However...the next person to approach the device to scan their QR code has to click the button before scanning, not a big deal but if there's a few people in the queue it's frustrating if everyone has to click each time before scanning their QR code.
I have tweaked it so that a few seconds after the response is displayed the app screen goes to scan mode but using this version ... the next person to approach the device to scan their QR code just sees the waiting scanner screen, no instructions etc. not very user friendly.
My ultimate goal is to have the scanner area in a "window" in the middle of the app screen with buttons, instructions and the scan response displayed around it, this way every user who walks up to the device can see what they have to do and the response sent back.... no button to click every time.
This "window" style display would also be very useful when taking a photo with the camera for the same reasons.
Drag a Screen1.BackPressed into your project. Leave it empty.
This will prevent the back button doing anything in your app. However when your users press the button to scan, and get taken to the scanner, they can use the back button to return without scanning.