Using Camera in the Android emulator
Update: ICS emulator supports camera.
Android: How to use webcam in emulator?
UPDATE
In Android Studio AVD:
- Open AVD Manager:
- Add/Edit AVD:
- Click Advanced Settings in the bottom of the screen:
- Set your camera of choice as the front/back cameras:
Emulator camera
Add following permission in Manifest file
<uses-feature
android:name="android.hardware.camera.any"
android:required="true" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
Also, you need to implement Runtime Permission refer developer page,
example 1 and example 2
Camera in Android Oreo emulator
As said by @dythim you click on Tools->Android-> AVD Manager then you chose the AVD to edit, if the camera feature is not on the first screen but you can see Show advanced Settings then click on the button to show advanced settings. For camera option choose Webcam0 as value to use for front and back cameras.
Android emulator settings no camera option (for virtual scene)
When you create a new Android Virtual Device (AVD) and in my case I used one with Play Store support.
In the Verify Configuration screen, click on [Advanced Options] and you should see:
And make sure that Camera Back is set to 'VirtualScene'.
As documented in Step 5 of ARCore - Create a virtual device with AR support
Related Topics
Android, How to Create Option Menu
How to Open a Fragment on Button Click from a Fragment in Android
Android: Failed to Allocate Memory
Listening for Action_Screen_Off
Android Studio: Gradle: Error: Cannot Find Symbol Variable
Mediaplayer.Setdatasource Causes Ioexception for Valid File
Stop Asynctask Doinbackground Method
Differencebetween System Apps and Privileged Apps on Android
Highlighting Text Color Using HTML.Fromhtml() in Android
Play Sound Using Soundpool Example
Android Webview - Intercept Clicks
Adb Got Two Same Serial Numbers When Connected to Two Smart Phones
Using Camera in the Android Emulator
Urlconnection or Httpclient: Which Offers Better Functionality and More Efficiency
Android Intent.Getstringextra() Returns Null