I am using genymotion emulator http://www.genymotion.com/ but when I opened the camera , I got message "cannot connect to the camera " , what is the problem ?
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).
Update: ICS emulator supports camera. Taking pictures work (with an intent), but no live preview (the Camera.
Genymotion also runs Robotium tests visibly faster, and with a smoother UI. However, be warned there are some noticable differences between Genymotion and the default Android emulators: You cannot use the special 10.0. 2.2 IP address with Genymotion to access localhost on the machine you are running the emulator from.
UPDATE Made it a community wiki in case someone else has something to add, I can't keep this updated right now :)
It could just be that you didn't activate the camera for the emulator. Opposed to the stock emulators that once you set up the webcam they just work, on genymotion emulators you need to turn the cameras on. The process is very simple.
On the emulator window, press ctrl+3 or ⌘+3 to bring the camera configuration panel that looks like the left, and turn it on like on the right:
You can select a dummy camera which will show a genymotion logo moving around the screen or use the system camera if it's available and preview it. Note that on the above screenshot I'm using the phone front camera instead of the back camera.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With