Using Camera in the Android emulator

Primal Pappachan picture Primal Pappachan · May 21, 2010 · Viewed 114.4k times · Source

I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if it makes it any easier)

I followed the tutorial here which is the only one I could find that was close to my requirements

But many of the libraries used in that tutorial(like android.hardware.CameraDevice) are not available in present sdk and are replaced by new libraries(like android.hardware.camera).

Any help on how to do this in the present sdk(2.1 or 2.2) would be much appreciated.

Answer

Adam Johns picture Adam Johns · May 23, 2016

In your AVD advanced settings, you should be able to set front and back cameras to Webcam() or Emulated.

enter image description here