With Zxing lib, I'm able to scan QR code efficiently, bot I'm not able to scan Barcode scanning. I did lots of RnD and different different piece of code tested, but not workig.
So, My question -
is Zxing libs supports Barcode scanning in Android ?
If supports, should I use different zxing lib or same lib (QR_Code) lib will work ?
Any pointer/suggestion please.
Zxing lib Supported code -
List of barcode formats supported by ZXING
1. QR_CODE
2. DATA_MATRIX
3. UPC_E
4. UPC_A
5. EAN_8
6. EAN_13
7. UPC_EAN_EXTENSION
8. CODE_128
9. CODE_39
10. CODE_93 11. CODABAR 12. ITF 13. RSS14 14. PDF417 15. RSS_EXPANDED
Used code snapshot -
Option 1 -
Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE");
objIntent.putExtra("SCAN_FORMATS", "CODABAR");
startActivityForResult(objIntent, 0);
Option 2 -
Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "PRODUCT_MODE"");
objIntent.putExtra("SCAN_FORMATS", "UPC_A");
startActivityForResult(objIntent, 0);
Option 3 -
Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "PRODUCT_MODE"");
objIntent.putExtra("SCAN_FORMATS", "UPC_A");
startActivityForResult(objIntent, 0);
Option 4 -
Intent objIntent = new Intent("com.google.zxing.client.android.SCAN");
objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(objIntent, 0);
I'm interested to scan only barcode not QR code -