Using Camera in the Android emulator

前端 未结 8 841
無奈伤痛
無奈伤痛 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

    0 讨论(0)
  • 2020-11-27 19:00

    Update of @param's answer.

    ICS emulator supports camera.

    I found Simple Android Photo Capture, which supports webcam in android emulator.

    0 讨论(0)
提交回复
热议问题