barcode scanning in android emulator

Yes it is possible. you can use the camera of your laptop as the AVD's front or back camera

enter image description here


In Android Studio,go to AVD Manager

  • Choose a device then Click "Edit this device" ->

  • Click Show Advanced Settings

  • At camera, select Front: Emulate, Back: VirtualScene.

  • Then Run App, Click ... - (icon More) at toolbar of device

  • Click icon camera

  • Click folder and choose image QR, then you can scale it

  • Close panel, an continue run app.

  • When you go to Scan QR Screen, please use ALT + QWEASD to move and controlThis location

    Then image will be scan


You can enable the cam on android emulator, and so use a barcode scanner on it.

To do so, you have to set the emulator property "configures camera facing back" (or front) to "yes" or "webcam0".

source : http://viralpatel.net/blogs/enable-camera-in-android-emulator/


Yes, you can set the image of wall and table from virtual scene on emulator config.config android emulator

Tags:

Android