Android 扫描仪如何工作?
有谁知道 Android 扫描仪是如何工作的吗?它的工作原理像条形码扫描仪吗?它可以扫描你编程的任何东西吗?如果有人知道我可以在哪里了解更多信息,请告诉我。
Does any one know how the Android scanner works? Does it work like a barcode scanner? And can it scan anything you program it to? If anyone knows where I could learn more about it, please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是我所做的
0.安装了条形码扫描仪应用程序。
1.转到链接...(http://code.google.com/p/zxing/downloads/list)
2.下载最新的zip文件
3.将核心文件夹转换为jar文件并添加到我的项目中外部库。(它包含解码条形码的所有必要代码)。
做类似这样的事情
5.这只是解码条形码中的 url。将您的网址编码为二维码。使用像这样的在线二维码生成器(http://qrcode.kaywa.com/)6.
上面的示例是解码网址并通过将意图传递给先前安装的条形码扫描仪应用程序自动在浏览器中打开它。
如果您想使用自己的条形码扫描仪库,则需要花费大量时间。如果您有这些想法,可以更好地探索 ZXING 代码。
我个人建议使用这些库并通过传递意图编写一个简单的库。有很多解码条形码的方法,请查看此类
http://code.google.com/p/zxing/source/browse/trunk/androidtest/src/com/google/zxing/client/androidtest/ZXingTestActivity.java
希望这一切有帮助。
斑马线二维码扫描库......
http://code.google.com/p/zxing/
扫描仪示例
http://malsandroid.blogspot.com/2010/07/using-barcode -scanner.html
This is what i have done
0.Installed the barcode scanner app.
1.go to the link ...(http://code.google.com/p/zxing/downloads/list)
2.download the latest zip file
3.converted the core folder to jar file and added to my proj as external libraries.(It contains all the necessary code to decode the barcodes).
An do something like this
5.This was just to decode the url in barcode. to encode your url into qr code .use qr code generators online like this (http://qrcode.kaywa.com/)
6.the above example was to decode url and open it in browser automatically by passing intent to barcodescanner app previously installed.
If you want to use your own barcode scanner libraries, it takes lot of your time. If your thinking in those lines better explore the ZXING code.
I would personally recommend to use those libraries and write a simple by passing intents. There lot of ways to decode barcodes look at this class
http://code.google.com/p/zxing/source/browse/trunk/androidtest/src/com/google/zxing/client/androidtest/ZXingTestActivity.java
hope all this helps.
zebra crossing qr code scanning libraries....
http://code.google.com/p/zxing/
Scanner example
http://malsandroid.blogspot.com/2010/07/using-barcode-scanner.html