saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.99k stars 1.2k forks source link

How can i connect camera without CameraDialog ? #501

Closed Sattayapong closed 5 years ago

Sattayapong commented 5 years ago

I try module usbCameraTest0 to usbCameraTest8 every module has using CameraDialog for Preview Camera.

I want to auto-connect camera after activity onCreate, but I can't find a way to do it.

Please give me an advice concerning what to do.

thankyou.

gxshao commented 5 years ago

You can build your own UVCCamera.aar by ./gradlew build. after building, you will find libuvccamera.aar under UVCCamara/libuvccamera/build/outputs/aar/

And include it into your project.

Sattayapong commented 5 years ago

thank you for your advice, I did it but I forgot to close.

EjazAmir commented 3 years ago

thank you for your advice, I did it but I forgot to close.

hey, can you share the piece of code how you achieve this.

EjazAmir commented 3 years ago

You can build your own UVCCamera.aar by ./gradlew build. after building, you will find libuvccamera.aar under UVCCamara/libuvccamera/build/outputs/aar/

And include it into your project.

hey, can you share the piece of code how you achieve this.