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.
Related
recently i've found this plugin can preview many device of Android or iOS device in one installed apps,
gif of the plugin is at https://github.com/aloisdeniel/flutter_device_preview
does react native has something like this?
I know there's some similar plugin like Expo and Appetize but i need something like this,
i mean i can preview of many device in my apps, not installing my app on many devices.
I think Apptize seems to be the most similar option available.
flutter_device_preview is certainly a more practical/simple solution. You change the parameters or device, the app is rendered instantaneously. However, it provides a first-order approximation, as said in flutter_device_preview repo:
Think of Device Preview as a first-order approximation of how your app
looks and feels on a mobile device. With Device Mode you don't
actually run your code on a mobile device. You simulate the mobile
user experience from your laptop, desktop or tablet.
But with Apptize you will be able to run a native app, with no approximations, using a the true mobile-OS on any PC/Mac/Linux OS via web. But of course, has some limitations (currently 7 devices only), and has another purpose.
Here you can generate an iframe to start the testing:
https://appetize.io/docs#embed-your-app
I want to integrate my external camera that I connect to tablet with my application using zxing. I know it is possible to use front camera but i would like to connect it via external. Is it possible? if yes how can i do it. I tested my external camera on my Nexus 7 and it does work but i had to use special app and set chmod for device. If exists faster way to set it up without using terminal all the time but only using library in my application i will be glad.
Another iteresting thing is that if I will be able to use my front camera in Nexus 7 to scan any bar codes because it has bad quality.
I also would like to know if exists some other worth testing library for android to use external or front camera.
I want to know is there any way to use the input of an external camera connected with android tablet using USB into my application that is running on that tablet.
I would suggest you to try this one
android-webcam
Also this will be helpful to you
developer.android.com/guide/topics/connectivity/usb/accessory.html
I've succeeded to get this project to work with my webcame connected to my Android tablet: https://github.com/saki4510t/UVCCamera.
However, the issue is that it relies on native libraries and comes with many samples undocumented. I am myself still looking for better ways.
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?
I want to access my android device (Nexus S) from my pc remotely. I was thinking of an application that would activate the camera and sent the video to my pc, something like Skype but without sound. My first thought was using a VPN connection, but it is a little bit restrictive as it is available only for API Level 14. I dont want to use a server cause I'll have to pay, unless I can avoid it.The concept is using the device for security like a wireless camera. Any ideas would be appreciated.
use an app called IpWebcam. It converts your phone into a wireless webcam. You may see the live video through browser or a player. Install it and you'll find the instructions inside :)