I want to make an application that uses the android camera, but I want to test it using the emulator. I don't have a webcam to use for live image, so I want to know if I can do it faking a still image (somehow) or I will need to use something like a fake cam on my desktop pc, and then make it be used by the android emulator.
I searched about some solutions but they appears old. Anyone is using something like that and can point me to a "fresh" solution?
Related
On the internet there is a lot of information on how to turn the phone into a webcam, but I would like to do the opposite, that my webcam become my phone camera.
To be more specific, some apps ask to take a live photo, on the spot, without the option to select from gallery, but I would like to get around this, App Cloner does this with the fake camera feature, but it doesn't work in almost any app, so they're looking for an alternative.
I thought of the following: On my mac, I can use software like CamTwist and ManyCam to create 'fake' webcam, CamTwist/ManyCam lets me pipe custom content (such as images or video) to that webcamera. So I thought of using emulators like BlueStack among others, and then these emulators would connect to my web cam and get the personalized content, the problem is that most apps don't run on emulators, at least the ones I need...
So following this logic, I would need to inject custom content into my mac camera and transmit this image to my android phone somehow.
If not possible, is there an alternative?
Note: fake camera android apps on play store not working.
I want to be able to run a program on my desktop (C++, bash, or python would all be preferred. I have plenty of experience with those languages so no worries there) to control the camera on my android phone. (While the phone is connected to my computer via USB.)
I'm guessing I should start by looking through the android SDK docs, but not sure if that's even the place to start, because I'm assuming the SDK is to write programs for the phone itself, not writing programs to control the phone.
The only functions I need are record, stop, set zoom level, and set save filename.
Basically my question is: where should I start looking, and if you have heard of a tutorial or example that shows an easy way to do something like this, I would appreciate it.
I have a Galaxy S5, and my desktop runs Debian 8.
Thanks!
I am creating an application that connects to the phone camera from native code.
This works great on my phone.
The problem is that when i try to do the same thing with android emulator, there is
no "/dev/video" to connect to (i know the camera is connected because i am able to open it
using the camera app).
Does anyone know if there is another way i can connect to the camera from native code?
/dev/video0 is, in terms of Android, an implementation detail, and not guaranteed to be present on any device or emulator.
Emulator support for camera is very limited, see for example Android webcam enable in emulator
There is no official native camera API on Android, so there's no guaranteed to work way of doing this.
For maximum compatibility, use the Java API and send the image data to native code for processing, if necessary.
I've decided to take a closer look at Phonegap, which means currently I'm not developing anything, but trying different things, e.g. the camera. Apparently this can't be tested with Ripple for Chrome - as far as I know it needs to be tested either in the emulator or on the device itself. My computer isn't slow, but building an app and installing it either on the emulator or the device still takes "a lot" of time (if you're just playing around).
So my question now: Is there any way of speeding up the process of testing applications e.g. in the computer's browser even if you are using things like camera?
Here are the things I've tried so far:
Using my Sony Xperia Mini Pro
Using Intel-Android-Image
Booting emulator from snapshot
Ripple (which can emulate a lot, but not the camera)
Thanks :)
I ended up building the app each time, it's kind of fast if you use build scripts.
But you can also try cordova browser https://play.google.com/store/apps/details?id=com.eas.cordova.browser
or Cordova Fast https://play.google.com/store/apps/details?id=org.Bellinux.CordovaFast
I haven't tried the latter myself though.
cheers
This is not really a developer question but not sure where else to ask. I'm getting close to making a video tutorial for my android app. On windows I used something called "demobuilder" which is pretty cool, it records the screen as you demo your app (with voice over) and it produces a flash video.
I've been looking for something like that for android but haven't found anything that captures the screen to a video.
Can someone recommend an app that will help?
The alternative is pointing a webcam at my tablet which I think is a bit unprofessional.
I had the same problem sometime ago. Like Michael said, it is hard to capture at full frame rate from the Android (or the emulator).
I ended up using Screencast for android. However, what I would probably do now was getting something like Elgato. You connect the device trhough HDMI to that box and it allows you to record the HDMI output signal.
Another approach is to build your app for Android-x86, so that it'll run on your computer without emulation. At that point, your usual screen cast tools all work.