I am developing an android program using eclipse and the emulator and each and every time, when I start the emulator I get a popup asking me for the video capture device. The app that I am developing has absolutely nothing to do with video, so I definitely don't give a $#!# whether the emulator has acess or uses my laptop's built-in camera or not. How can I silence this annoying startup question?
Michael
Related
I am attempting to develop a Voice search feature for an app I am currently developing, but due to unfortunate circumstances, I only have the Android emulator available to me, and no physical Android phone.
I have been trying to get the Microphone on the Android Emulator to hear my voice, just through the normal Google Search, but it does not seem to be able to capture the words I am saying.
I have tested this on two different emulators, Pixel XL and Pixel 3a, both running Android Oreo.
I have gone in the emulator settings and made sure that "Virtual Microphone uses host audio input" is turned on.
The Emulator microphone seems to recognize when I'm talking, and the volume at which I'm talking at, indicated by the microphone interface/animation, but it never is able to transcribe any of the words. It always return an empty result after attempting a voice search.
I am on a 2019 MacBook Pro running macOS Catalina. I have confirmed the microphone on this computer works fine by testing it on several Voice to Text websites. I have also tried launching the emulator from terminal, without any success.
If anyone has any advice, that would be great!
I am trying to make the android emulator (v26) to be able to pick the host microphone or a sound stream as the source of sound input (like it was the physical device microphone).
My first try was to open the easy recorder application that comes with the system image, but when I try to open it the emulator crashes and reboots.
I am currently looking at other options, like Android-x86 in a VirtualBox, but so far I haven't been able to even install it (I'm on it at this moment)
What I need to do is to have certain applications (third-party, from which I am not the developer) to receive sounds from the host machine as if the sound was received through the phone microphone.
One of the things that I need is to be able to launch multiple emulators at the same time on the host machine, and, as far as I understand (I'm very new in the Android world) with Genymotion you have access to the host microphone, but you have to pay for each instance that you want to run. Is that so?
My host machine is an ubuntu 16.10, but actually any linux flavor that can do it would work for me.
I don't seem to find a proper resource to help me figure it out, all the questions that I find here in stack overflow are a bit old, some people say that is impossible to use the microphone, others say that is possible but I don't seem to find how.
I have simple question.
I am developing an application that can record video capture. The application is working successfully on a hardware device, but it is not on a virtual device.
the error: "can't connect camera"
I guess so, a video recording can not working on a virtual device. am i right?
I have had video working in Genymotion in the past, but I don't know if I ever got it working with the standard emulator.
"emulator: warning: opening audio input failed"
The above message is displayed in the console everytime an AVD is launching, and then no sound is coming out from the emulator.
I have tried to delete the AVD and have created a new one again and again, but it didn't help with the problem.
I have also searched on Google for many time, but I find nothing useful.
It is really interesting that people tend to suggest to just ignore the problem because the AVD is still working fine without sound.
But I am writing an Android App that related to sound, I really need a workable solution to make the AVD to "speak" again.
Many thanks to you.
you can disable audio input setting manually : go to your-avd-path/config.ini then change the line hw.audioInput=yes to hw.audioInput=no
Open the AVD Manager.Click edit on any existing Virtual Device created or create a new one. On the create Virtual device Window, there is a new button on hardware tab.When that button is clicked, u will get a number of properties. Select the necessary property (like Audio Playback Support). I think that will do the trick.
EDIT: This was possible in earlier versions of AVD Manager. Android updated the AVD to a new one(that we see now). There is no option to enable/disable audio/video in the new AVD creation window and there is no word of it in the AVD documentation.
However they specify that you can play audio and video using Emulator.
AVDs let you define certain hardware aspects of your emulated phone
and allow you to create many configurations to test many Android
platforms and hardware permutations. Once your application is running
on the emulator, it can use the services of the Android platform to
invoke other applications, access the network, play audio and video,
store and retrieve data, notify the user, and render graphical
transitions and themes.
The way I solved my issue: Make sure you do not have anything else "using" or diverting your audio driver.
In my instance I also work with audio devices for music applications. This one in particular was "Jack Audio". So I disabled the Jack Audio server and my audio device came back.
I've started developing for Android.
I want to write an barcode scanning app, but without a way to activate the camera in the emulator it could be annoying.
Does anybody knows a way to use the USB-Webcam of my PC as an Android Camera ?
I've searched everywhere i know there is a lib from tomgibara, but it would be really nice if some has got an sample project for this.
At the moment the Emulator only asks for the capturing device, but when i start now the camera app from android i only see this dummy camera site with this chessy squares.
Thank you for all of your help.
You can specify which camera to use and how in the emulator command line using the options
-fake-camera <mode> set fake camera emulation mode
where mode can be one of back, front, or off, and
-webcam name=<name>[,dir=<direction>] setup web camera emulation
where name is a valid connected camera name and dir is one of front or back.
The connected camera names can be obtained by using the special option -webcam list.
For example, in Linux you can obtain something like
List of web cameras connected to the computer:
Camera 'webcam0' is connected to device '/dev/video0' on channel 0 using pixel format 'YUYV'
OK after some tries I am able to run the emulator on the way you described above, but the fake-camera option does not help =(
It let me choose which camera I want use and after i clicked "OK" the emulator starts, but without the webcam as front or back camera =(
Is it possible that it is a webcam which is not supported ?
If Yes: which cameras are supported ?