How to scan barcode in Android Emulator ?

Varun Guleria
Apr 29, 2024

--

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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response