如何将条码扫描仪直接集成到我的应用程序上?
这里有人知道如何将条形码扫描直接集成到应用程序中,而无需安装单独的 ZXing 应用程序吗?
Does anyone here knows how to to integrate barcode scanning directly into an application without having the separate ZXing application installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
条码扫描仪的完整源代码位于:http://code.google.com/p/zxing
作为库的开发人员,我可以告诉您,当有人尝试将我们的源代码集成到他们的应用程序中时,95% 的情况下会发生两种情况:
我可以告诉您我们不希望开发人员复制并粘贴我们的源代码。除非您是一位经验丰富的 Android 开发人员,否则您将很难自行重新发明扫描应用程序
底线:省去麻烦并通过 Intent 集成:http://code.google.com/p/zxing/wiki/ScanningViaIntent
The complete source code to Barcode Scanner is here: http://code.google.com/p/zxing
As a developer of the library, I can tell you that two things happen in 95% of cases where someone tries to integrate our source code into their app:
I can tell you we do not want developers to copy and paste our source code. And unless you're an experienced Android dev, you will have trouble re-inventing a scanning app on your own
Bottom line: save yourself the trouble and integrate via Intent: http://code.google.com/p/zxing/wiki/ScanningViaIntent
尝试使用Google Chart工具api,它非常简单,我有一个我不久前写的函数:
try to use the Google Chart tool api its very simple, i have a function that i wrote a while back: