For Android Virtual Devices, How to Use Computer Camera? - android

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.

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.

Result doesn't show up when emulate with AVD on Mac

I'm a newbie for Android development. I want to run a Hello World on the emulator in Eclipse as my starting point, but the magic words never show up. I just follow the tutorial, Launch the Android Virtual Device Manager, Create a New AVD and Click Run.
But Everything is fine if it runs on a real device. Is there any special setting on Mac?
Please help.
You have to wait a long time util it appears. I'd advise you to use USB debugging and a real device. It works much faster than the emulator. In addition you can use the app with the normal gestures and all the sensors like camera etc.. But as I said: it's much faster than the AVD.
Check Console tab in Eclipse for information about APK upload and installation progress.
Is there any special setting on Mac?
No there is not. Settings are pretty much the same on all platforms.

How can i start my app written with libgdx on my android device?

I have written some codelines with libgdx in eclipse and want to run them on my android device.(It's a tablet)
But i cant find out how to do this.
I even cant run it on the android emulator provided by the android sdk. I get an error that the app stopped unexpectedly.
The app is working fine with the desktop launcher...
I hope someone can explain me how to get it working on the emulator or on my android device.
I saw somewhere that simply connecting my device via usb should be enough that eclipse is able to create an temporary app on the device, but this also didnt work.
Regards
1st of all, download SamsungKies[latest], to get and install proper USB Drivers. Its important that it should be the latest, cuz there was a bug in the previous versions.
Now that you have the drivers, simply connect your device to your machine IN USB DEBUGGING MODE.
Go to your main activity, and run.
If it launches in an emulator, close the emulator, and again in main activity, select run configurations -> Android Applications -> target -> always prompt to pick device.
Run again, and it should install and run in your phone/tablet.
NOTE:The activity closes in emulator because, by default, the emulator doesn't support OpenGLES emulation, its too heavy for your CPU.
i know its kinda late, but i hope it helps others:)

Use Desktop webcam on Android AVD

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.

How to use my local computer camera in android emulator?

How to use my local computer camera in android emulator?
At the moment it's not possible in the emulator itself, but Tom Gibara has written a small component to do it anway, check his article "Live Camera Previews in Android" about the temporary solution.
A feature request is already made for this functionality to be added to the emulator.
There is an option to use your computer webcam to use as android emulator camera.You just need to set these options to webcam.

Categories

Resources