Question

Using ZXing (on Android), if you initiate a PDF417 barcode scan like this...

List<String> oDesiredFormats = Arrays.asList("PDF_417".split(","));
IntentIntegrator integrator = new IntentIntegrator(this);
integrator.initiateScan(oDesiredFormats);

... and you initiate an "all codes" (except PDF417 and maybe a few others) barcode scan like this...

IntentIntegrator integrator = new IntentIntegrator(this);
integrator.initiateScan();

... then how do you initiate a single barcode scan that will recognise both (all the standard codes, and PDF417)? Thanks in advance!

Was it helpful?

Solution

If you don't specify it, it will default to scanning for whatever the user has configured. This by default includes most formats but not PDF417. So, I think you'd have to enumerate all the formats here. It's not too hard, but do you really want that? usually you have a use case that is scanning for a few related formats at most.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top