문제

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!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top