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:
Follow the below steps in Eclipse.
- Goto -> AVD Manager
- Create/Edit the AVD.
- Hardware > New:
- Configures camera facing back
- Click on the property value and choose = "webcam0".
- Once done all the above the webcam should be connected. If it doesnt then you need to check your WebCam drivers.
Check here for more information : How to use web camera in android emulator to capture a live image?
I suggest you to look at this highly rated blog post which manages to give a solution to the problem you're facing :
http://www.inter-fuser.com/2009/09/live-camera-preview-in-android-emulator.html
His code is based on the current Android APIs and should work in your case given that you are using a recent Android API.
I would suggest checking the drivers and updating them if required.