Using Camera in the Android emulator

前端 未结 8 889
無奈伤痛
無奈伤痛 2020-11-27 18:13

I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if i

8条回答
  •  无人及你
    2020-11-27 18:57

    The newest camera2 apis work fine w/ an emulator that has camera support enabled.

    Example for using the newer API:

    https://github.com/googlesamples/android-Camera2Basic/blob/master/Application/src/main/java/com/example/android/camera2basic/AutoFitTextureView.java

提交回复
热议问题