如何在Android Emulator Camera中模拟图片? [英] How to mock a picture in Android Emulator Camera?
本文介绍了如何在Android Emulator Camera中模拟图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在模拟器相机拍摄的照片中,是否可以设置静态图片?我想在模拟器上使用zxing条码读取器测试ir.
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.
推荐答案
这可以通过添加经典的抽象层(例如这位绅士在此示例源代码中所做的事情)来解决:
http://www.tomgibara.com/android/camera-source
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
具体来说,听起来您可能想要一些测试图片并使用 BitmapCamera
Specifically, sounds like you may want to have some test pictures and use the BitmapCamera
这篇关于如何在Android Emulator Camera中模拟图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文