How to mock a picture in Android Emulator Camera?

前端 未结 3 1622
别那么骄傲
别那么骄傲 2021-01-30 23:15

Is there a way to set a static picture as the photo been taken by the emulator camera? I would like to test ir with zxing barcode reader on emulator.

3条回答
  •  野的像风
    2021-01-30 23:42

    This can be solved by adding a classic abstraction layer such as this gentleman has done in this sample source code:
    http://www.tomgibara.com/android/camera-source

    Specifically, sounds like you may want to have some test pictures and use the BitmapCamera

提交回复
热议问题