Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Last active March 1, 2024 05:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrieljoelc/df8256b896cac46bd51fd2deb412da5f to your computer and use it in GitHub Desktop.
Save gabrieljoelc/df8256b896cac46bd51fd2deb412da5f to your computer and use it in GitHub Desktop.
Android Emulator Scanner/Camera Setup

Prerequisite:

  • Android Studio
  • You have a highish res barcode or QR code image (download one from Google images)

Steps:

  1. Following the steps here
  2. Start the emulator
  3. Click on "More" in the emulator panel to open the "Extended controls" window
  4. Click on "Camera"
  5. Click "ADD IMAGE" in "Wall" section
  6. Select your barcode image
  7. Start Customer App
  8. Navigate to the scanner
  9. Follow in the instructions for moving around to navigate to the smaller room and to the wall with the barcode
  10. Rotate mouse to point at the barcode
  11. The app should read the barcode just like in a real device

Extended controls screenshot

Extended controls screenshot

References

@kennytriplex
Copy link

kennytriplex commented Apr 23, 2023

How about setting the front camera to emulated and using a virtual camera like obs? Does not work when I try that
20230422_001145
20230422_001138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment