Use Desktop webcam on Android AVD - android

i'm developing an android app that needs to capture a camera picture,
is there any way to configure my AVD to use my conputer webcam on the emulator?
when i open the default camera app it shows me an squareanymation, can i use/configure the emulator/avd to use my computer webcam?

I really can't think of a way to do this.
I would do the following:
During development, when debugging on an actual Device under adb, use the camera as normal. While debugging on an AVD, comment out your camera code and us a pre-taken a png to your app that resembles/emulates the photo the camera would have taken. This would let you work on the picture analysis regardless of the camera, and finish your app without an actual ADB device, just AVDs. One you get ahold of a real device you can finish up.
On another note, if you are ready to go poking around in VMs, Android Kernels, and HALS, you could follow this article (http://bytecruft.blogspot.com/2011/05/alternative-to-android-emulator-and.html) which tells you how to setup Android X86 under VMWare or Virtualbox as an ADB Device. I'm sure setting up the host machine's webcam as a camera would be much easier that bay (VMWare device bridging comes pretty close).
Hope I helped.

Related

"Xamarin Android Player" Can't connect to the camera

First, let me say I'm not currently a Xamarin Developer. I'm needing to test apps using Xamarin Android Player. Some of these apps need to be able to access EITHER the camera on my OSX 1011.5 box, OR some dummy camera that's fools the app (I dont need real pictures).
Currently, when I try to use an app that requires the camera I get a "Can't connect to the camera". I can't find anywhere how to convince the Virtual Device where the camera is.
I did see This question but it's not helpful since 'Tools' or 'Google Emulator Manager' are nowhere that I can find.
ALTERNATIVELY...a suggestion for any OTHER emulator where I can change the hosts and/or name resolution DNS so I can point a website to a test IP.
NOTE: I tried Genymotion and it hard crashes my OSX on as soon as I start a virtual device. It USED to work, but now it doesn't and I don't know why.

Camera has stopped

I have a big problem!
When I want to start camera in Eclipse AVD android emulator it shows Unfortunately, Camera has stopped. When I start App Camera - light near my laptop camera turns on, but just for a few seconds. It turns off when I click at error communicate "OK". I have Lenovo B590 laptop. I've updated my drivers. My camera works in Skype. I tried running my AVD with another target and another CPU(atom etc), but still same error.
I tried all solutions for my problem from this site (and another), but none worked. I need to write the program, but I can't test it when the camera doesn't work.
Screenshot with my AVD settings:
I had the same problem on an Lenovo X220. I solved it by installing a "fake-cam" driver.
According to me, first of all check your system drivers and calculate how many drivers are not present in system or not updated or which are outdated via driver max or update my driver software then install/update web camera,usb bus related, memory related, chip-set related and port and processor related drivers install(you can install the driver by CD when ever you purchase your computer at that time some shoppers are given that)
Then edit your AVD back camera value set=webcame0 and give the size of your SD card and memory then click edit and then ok and run you camera application. I'm sure that camera will start.

Will loading my app from Eclipse to my Android phone instead of AVD will speed things up? Because AVD is slow as hell

AVD takes forever to load my app. So I was wondering if using my android cellphone would speed things up a bit.
Very simply said, it absolutely will.
Enable USB debugging on your device.
Install phone drivers and connect your phone to your PC. When running your application choose your phone from the list and run.
Read more about all steps on Using Hardware Devices, Android developer site

Using Laptop Webcam as Android Emulator's Cameta

I am trying to use my laptop webcam as my back camera of my emulator for sdk version 10 and 16, but in both case the emulator does not found my webcam though the emulator does not show any shortage of SD cart memory or also request permission for using webcam. When I run emulator's default camera app, it shows grid of gray and black with a greed rectangle moving here and there, when capturing photos it capture the same thing at that time on screen. Can anyone give me any solution please. My complete emulator configuration is:
This link can be helpful Android: How to use webcam in emulator?
Short story is:
Go to AVD manager
Select your device
Go to device properties
Change back facing camera dropdown value to "webcam0"
If it all not working you can try to use genymotion emulator http://www.genymotion.com/
It works much more faster and it easy to use your laptop webcam as back camera of the device

For Android Virtual Devices, How to Use Computer Camera?

I'm new to android apps development. I'm trying to use the camera of my computer to catch a picture in Android Emulator. I've checked out Tom's method, but it is written in the former syntax. It has a lot of errors while I'm trying to compile them. Is there anyone have a better way?
When I run the emulator with my laptop, a message pops up asking me if I want to attach the computer web cam to the emulator. I select "Yes" and it works fine.
Make sure you didn't select any "no-camera" settings in the AVD creation, and that your camera has the right drivers and whatever it needs to operate.

Categories

Resources