我想要做什麼:要在一個屏幕上掃描條形碼並列出它們的信息。 例如。 Book 1 = $ 30,Book2 = $ 21列出ZXing中掃描條碼的信息
就是這樣的。
我所引用:
我發現這個http://as400samplecode.blogspot.com/2011/09/android-barcode-scanner-using-zxing.html和Scanning Barcodes (ZXing) in a own Thread and displaying a ProgessDialog 也Using ZXing to create an android barcode scanning app
從這些我意識到,我不得不進口IntentIntegrator,但是當我進口,我得到了幾個錯誤類似這樣:
The method onClick(DialogInterface, int) of type new DialogInterface.OnClickListener(){} must override a superclass method
The method onClick(DialogInterface, int) of type new DialogInterface.OnClickListener(){} must override a superclass method
請親切點亮一些例子。因爲我已經閱讀了5個小時,而且我不知道這個東西應該是什麼樣子。