将Zxing 1.7集成到Android应用程序中
我已经编译了 Zxing core.jar 并且已经将其添加到我的 Eclipse 项目中,但是在尝试使用 Zxing 库时遇到了麻烦,我不知道从哪里开始。我想做的是直接从设备的相机扫描二维码。我的实际应用程序确实在 SurfaceView 中显示相机预览,但它不扫描任何内容。
我的问题是如何从相机实际扫描?在不使用 Zxing 意图机制的情况下,我想将 Zxing 直接嵌入到我的项目中。
我是新手,我将不胜感激您能为我提供的任何帮助:代码、链接等。提前致谢。
I have compiled the Zxing core.jar and I have already added it to my Eclipse project, but I'm having trouble while trying to use the Zxing libraries I don't know where to start from. What I would like to do is to scan QR Codes directly from the device's camera. My actual app does show the camera preview in a SurfaceView, but it doesn't scan anything.
My question is how to actually scan from the camera? Without using the Zxing intent mechanism, I would like to embed Zxing directly into my project.
I'm a newbie, I would appreciate any kind of help you can provide me: code, links , etc. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该项目在
android/
中拥有条码扫描仪的完整源代码。你可以参考一下这个。The project has complete source code for Barcode Scanner in
android/
. You can just reference this.