How to call scanned barcode history from zxing

2019-06-05 07:30发布

问题:

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