How to call scanned barcode history from zxing

天涯浪子 提交于 2019-12-08 07:02:22

问题


I am scanning barcodes using Zxing in my application i have a button called History onclick it should display scanned barcode history i dont know how to call history from zxing.


回答1:


If by Zxing, you mean you are using the library (not the zxing client app) to scan QR codes then you will have to implement the history related functionality on your own. Basically save items in the database base each time you have successfully scanned something.

Take a look at the implementation of history feature in the sample zxing android client. https://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/history/HistoryManager.java



来源:https://stackoverflow.com/questions/19217993/how-to-call-scanned-barcode-history-from-zxing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!