I am new to Android development. I am using Android 4.x SDK. I can't enable webcam in the Android emulator. Can anyone tell me how to enable it? Thanks!
There is a way to get this working use the Android Virtual Device Manager. You need to edit your AVD so that in the hardware section either "Configures camera facing front" or "Configures camera facing back" are available. One, but not both, of the values for these properties should be set to "webcam0" (or whatever is available). Then start your virtual device and use your webcam as an emulated camera.
If you have both properties set to "webcam0" then you'll get a warning when you start up the virtual device and the front/back control won't be available in the camera app.