i using zxing lib scan qr , bar code. code working qr code unfortunately nor working bar code.
intent intent = new intent("com.google.zxing.client.android.scan"); intent.setpackage("com.google.zxing.client.android"); intent.putextra("scan_mode", "qr_code_mode"); startactivityforresult(intent, 0);
any appreciable. in app can not use intentintegrator
in zxing lib following format provided-
static final collection<barcodeformat> product_formats; static final collection<barcodeformat> one_d_formats; static final collection<barcodeformat> qr_code_formats = enumset.of(barcodeformat.qr_code); static final collection<barcodeformat> data_matrix_formats = enumset.of(barcodeformat.data_matrix); static { product_formats = enumset.of(barcodeformat.upc_a, barcodeformat.upc_e, barcodeformat.ean_13, barcodeformat.ean_8, barcodeformat.rss_14); one_d_formats = enumset.of(barcodeformat.code_39, barcodeformat.code_93, barcodeformat.code_128, barcodeformat.itf); one_d_formats.addall(product_formats);
}
you can try changing scan mode. try :
intent.putextra("scan_mode", "product_mode");
or
intent.putextra("scan_mode", "one_d_mode");
you can find more info on following page: https://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/intents.java
Comments
Post a Comment