Android Question How to add launch options for devices in B4A AVDManager?

Sandman

Expert
Licensed User
Longtime User
The Android emulator is capable of using a connected webcam as a camera source for the emulated device. This needs to be specified when the device is launched, it's not something that is possible to enable afterwards (and so there's no option for it in the emulator settings).

The way to enable a camera for the emulator is to start it with the flag -camera-back webcam0 (or whatever it might be named).

Is there a way to configure this flag somewhere so that when the B4A AVDManager starts a device, it's added to the launch command?


(I have no problem starting the device from the command line, with the flag. This works as expected and enables the webcam nicely, but I'm not sure if there will be issues with the IDE when it comes to debugging, etc.)
 

Sandman

Expert
Licensed User
Longtime User
Thanks, that's the clue I needed!

Your suggestion wasn't entirely correct for my situation though. This is what worked for me:
B4X:
hw.camera.back = webcam0
hw.camera.front = none

And to clarify for future readers of this thread: In the end I did not need to add launch options because those options were also exposed in the config.ini.
 
Upvote 0
Top