How to scan barcode in Android Emulator ?
Ever been in a situation where you need to scan a barcode for development but don’t have an actual device handy for testing?
Let’s walk through how you can do that using the Android Emulator.
- Go to Settings of your emulator:

- Click on Advanced Settings and set below values in camera field:

- Close this dialog and Cold boot your emulator:

- Launch your emulator. Install app and open the scanner on app. It will open the camera of your mac. Bring your barcode in front of camera to let app scan it.
For testing you can use any QR Code generator like : https://www.the-qrcode-generator.com/
You are all done now 😀 . The app will consume the barcode and fill the field for the value stored in barcode.