// the find
wangpeiyuan/ZxingBarCode
An Android library to scanner and generate barcode based on ZXing and ZBar.
A thin Android wrapper that combines ZXing and ZBar for barcode scanning and QR code generation. The dual-decoder fallback (ZBar first, ZXing as backup) is its main differentiator. Targeted at Android developers who want one dependency instead of wiring up both libraries themselves.
The ZBar-first-then-ZXing fallback strategy is a reasonable practical choice — ZBar is faster on most hardware, ZXing covers edge cases ZBar misses. The QR generation API is actually well-designed: QRCodeParams bundles overlay image, logo, and background composition in one object instead of a chain of builder calls. Vendoring the ZBar JNI source directly means no external .so dependency hunting. The `setOnlyQRCode` optimization flag is a small but useful API surface for apps that only need QR.
Dead since December 2018 — last push over 7 years ago, no camera scanning was ever implemented (the TODO still says 'not sure if we should add it'), which means you're getting a still-image decoder with no viewfinder, not a drop-in scanner. The JNI layer vendors libiconv 1.15 (from 2017) as raw source in the repo, which is a maintenance and security liability nobody has looked at since. At 71 stars with no camera support and no updates, ML Kit's barcode scanning API has made this entirely obsolete — it's faster, actively maintained, and ships with Google Play Services. The README is in Chinese with no English translation beyond the API tables.