Reputation: 857
I'm trying to do barcode scanning using Android emulator. Could anyone please tell me what steps to follow to do a simple barcode scanning on the emulator?
Thank for any help,
Upvotes: 28
Views: 57867
Reputation: 31
It is possible if you have a camera on your pc/laptop.
In Android Studio:
Device Manager
;Edit
icon button;Camera
section you can find Front
and Back
;Webcam
(In my case on mackbook I have Webcam0
) in both cases ;Device Manager
select the emulator device -> 3 dots -> Cold Boot Now
;Upvotes: 2
Reputation: 12871
Yes it is possible. you can use the camera of your laptop as the AVD's front or back camera
Upvotes: 11
Reputation: 320
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 control
Then image will be scan
Upvotes: 28
Reputation: 359
Yes, you can set the image of wall and table from virtual scene on emulator config.config android emulator
Upvotes: 35
Reputation: 807
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/
Upvotes: 13
Reputation: 2561
You can't use barcode scanner on emulator because for scanning you need a camera..so if possible then use mobile device for it..
Upvotes: 4